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

Method test_islink_invalid_paths

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

Source from the content-addressed store, hash-verified

208 self.assertIs(posixpath.lexists(TESTFN + "2"), True)
209
210 def test_islink_invalid_paths(self):
211 self.assertIs(posixpath.islink(TESTFN + "\udfff"), False)
212 self.assertIs(posixpath.islink(os.fsencode(TESTFN) + b"\xff"), False)
213 self.assertIs(posixpath.islink(TESTFN + "\x00"), False)
214 self.assertIs(posixpath.islink(os.fsencode(TESTFN) + b"\x00"), False)
215
216 def test_ismount(self):
217 self.assertIs(posixpath.ismount("/"), True)

Callers

nothing calls this directly

Calls 3

islinkMethod · 0.80
fsencodeMethod · 0.80
assertIsMethod · 0.45

Tested by

no test coverage detected