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

Method test_pathlike

Lib/test/test_os.py:3062–3066  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

3060
3061 @os_helper.skip_unless_symlink
3062 def test_pathlike(self):
3063 os.symlink(self.filelink_target, self.filelink)
3064 self.addCleanup(os_helper.unlink, self.filelink)
3065 filelink = FakePath(self.filelink)
3066 self.assertPathEqual(os.readlink(filelink), self.filelink_target)
3067
3068 @os_helper.skip_unless_symlink
3069 def test_pathlike_bytes(self):

Callers

nothing calls this directly

Calls 4

assertPathEqualMethod · 0.95
FakePathClass · 0.90
addCleanupMethod · 0.80
readlinkMethod · 0.45

Tested by

no test coverage detected