MCPcopy Index your code
hub / github.com/RustPython/RustPython / test_ismount_non_existent

Method test_ismount_non_existent

Lib/test/test_posixpath.py:222–229  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

220 self.assertIs(posixpath.ismount(FakePath(b"/")), True)
221
222 def test_ismount_non_existent(self):
223 # Non-existent mountpoint.
224 self.assertIs(posixpath.ismount(ABSTFN), False)
225 try:
226 os.mkdir(ABSTFN)
227 self.assertIs(posixpath.ismount(ABSTFN), False)
228 finally:
229 os_helper.rmdir(ABSTFN)
230
231 def test_ismount_invalid_paths(self):
232 self.assertIs(posixpath.ismount('/\udfff'), False)

Callers

nothing calls this directly

Calls 3

rmdirMethod · 0.80
assertIsMethod · 0.45
mkdirMethod · 0.45

Tested by

no test coverage detected