summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_posixpath.py
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2023-01-22 13:19:10 (GMT)
committerGitHub <noreply@github.com>2023-01-22 13:19:10 (GMT)
commit5717ab3ac50aa91d19c1f44f970e7db92619f2c0 (patch)
tree90f7bdb3205cc664734a84a23058a0a2f8be0292 /Lib/test/test_posixpath.py
parentcaa6bcfb8c85e79df1ed55e2de971ec15a2e3886 (diff)
downloadcpython-5717ab3ac50aa91d19c1f44f970e7db92619f2c0.zip
cpython-5717ab3ac50aa91d19c1f44f970e7db92619f2c0.tar.gz
cpython-5717ab3ac50aa91d19c1f44f970e7db92619f2c0.tar.bz2
[3.10] gh-96192: fix os.ismount() to use a path that is str or bytes (GH-96194) (#99456)
gh-96192: fix os.ismount() to use a path that is str or bytes (GH-96194) (cherry picked from commit 367f552129341796d75fc4cc40edb49405235a2b) Signed-off-by: Christoph Anton Mitterer <mail@christoph.anton.mitterer.name> Co-authored-by: Christoph Anton Mitterer <calestyo@scientia.org> 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 8d398ec..50cba25 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.