mirror of
https://github.com/python/cpython.git
synced 2025-08-31 05:58:33 +00:00
gh-96192: fix os.ismount() to use a path that is str or bytes (#96194)
Signed-off-by: Christoph Anton Mitterer <mail@christoph.anton.mitterer.name> Co-authored-by: Eryk Sun <eryksun@gmail.com> Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
This commit is contained in:
parent
1455c516fc
commit
367f552129
3 changed files with 4 additions and 0 deletions
|
@ -178,6 +178,8 @@ class PosixPathTest(unittest.TestCase):
|
|||
def test_ismount(self):
|
||||
self.assertIs(posixpath.ismount("/"), True)
|
||||
self.assertIs(posixpath.ismount(b"/"), True)
|
||||
self.assertIs(posixpath.ismount(FakePath("/")), True)
|
||||
self.assertIs(posixpath.ismount(FakePath(b"/")), True)
|
||||
|
||||
def test_ismount_non_existent(self):
|
||||
# Non-existent mountpoint.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue