-
Notifications
You must be signed in to change notification settings - Fork 95
Add Python 3.12 to the test suite #764
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 1 commit
ccd41d2
3748e6a
39a80cf
d0cfd0e
887d6b0
164879d
ebd31f2
2a60d68
dcdb458
be93897
a0d1f72
cb03c5c
311c982
f1b954b
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -578,8 +578,7 @@ def path(self) -> AnyStr: | |
|
|
||
| @property | ||
| def is_junction(self) -> bool: | ||
| # TODO: implement junctions | ||
| return False | ||
| return self.filesystem.isjunction(self.path) | ||
|
|
||
| def __getattr__(self, item: str) -> Any: | ||
| """Forward some properties to stat_result.""" | ||
|
|
@@ -3446,19 +3445,7 @@ def islink(self, path: AnyPath) -> bool: | |
| return self._is_of_type(path, S_IFLNK, follow_symlinks=False) | ||
|
|
||
| def isjunction(self, path: AnyPath) -> bool: | ||
| """Determine if path identifies a junction. | ||
|
|
||
| Args: | ||
| path: Path to filesystem object. | ||
|
|
||
| Returns: | ||
| `False` on posix systems. | ||
| `True` if path is a junction on Windows. | ||
|
|
||
| Raises: | ||
| TypeError: if path is None. | ||
| """ | ||
| # TODO: implement junction on Windows | ||
| """Junction are never faked.""" | ||
| return False | ||
|
||
|
|
||
| def confirmdir( | ||
|
|
@@ -3725,17 +3712,7 @@ def islink(self, path: AnyStr) -> bool: | |
| return self.filesystem.islink(path) | ||
|
|
||
| def isjunction(self, path: AnyStr) -> bool: | ||
| """Determine whether path is a junction. | ||
|
|
||
| Args: | ||
| path: Path to filesystem object. | ||
|
|
||
| Returns: | ||
| `True` if path is a junction. | ||
|
|
||
| Raises: | ||
| TypeError: if path is None. | ||
| """ | ||
| """Junction are never faked.""" | ||
| return self.filesystem.isjunction(path) | ||
|
|
||
| def getmtime(self, path: AnyStr) -> float: | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Typo: Junction -> Junctions.
You may also add something like "Returns
False- junctions are never faked."