summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_posixpath.py
diff options
context:
space:
mode:
authorChristoph Anton Mitterer <calestyo@scientia.org>2022-11-14 04:12:32 (GMT)
committerGitHub <noreply@github.com>2022-11-14 04:12:32 (GMT)
commit367f552129341796d75fc4cc40edb49405235a2b (patch)
tree04ba5866ad2e28e7143be803eecf133c0f7e5847 /Lib/test/test_posixpath.py
parent1455c516fce829f8d46e4f15557afe8653e7e995 (diff)
downloadcpython-367f552129341796d75fc4cc40edb49405235a2b.zip
cpython-367f552129341796d75fc4cc40edb49405235a2b.tar.gz
cpython-367f552129341796d75fc4cc40edb49405235a2b.tar.bz2
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>
Diffstat (limited to 'Lib/test/test_posixpath.py')
-rw-r--r--Lib/test/test_posixpath.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/test/test_posixpath.py b/Lib/test/test_posixpath.py
index c644f88..8a1dd13 100644
--- a/Lib/test/test_posixpath.py
+++ b/Lib/test/test_posixpath.py
@@ -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.