MCPcopy Index your code
hub / github.com/python/cpython / test_ismount_non_existent

Method test_ismount_non_existent

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

Source from the content-addressed store, hash-verified

221 self.assertIs(posixpath.ismount(FakePath(b"/")), True)
222
223 def test_ismount_non_existent(self):
224 # Non-existent mountpoint.
225 self.assertIs(posixpath.ismount(ABSTFN), False)
226 try:
227 os.mkdir(ABSTFN)
228 self.assertIs(posixpath.ismount(ABSTFN), False)
229 finally:
230 os_helper.rmdir(ABSTFN)
231
232 def test_ismount_invalid_paths(self):
233 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