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

Method test_pathlike

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

Source from the content-addressed store, hash-verified

3108
3109 @os_helper.skip_unless_symlink
3110 def test_pathlike(self):
3111 os.symlink(self.filelink_target, self.filelink)
3112 self.addCleanup(os_helper.unlink, self.filelink)
3113 filelink = FakePath(self.filelink)
3114 self.assertPathEqual(os.readlink(filelink), self.filelink_target)
3115
3116 @os_helper.skip_unless_symlink
3117 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