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

Method test_pathlike_bytes

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

Source from the content-addressed store, hash-verified

3115
3116 @os_helper.skip_unless_symlink
3117 def test_pathlike_bytes(self):
3118 os.symlink(self.filelinkb_target, self.filelinkb)
3119 self.addCleanup(os_helper.unlink, self.filelinkb)
3120 path = os.readlink(FakePath(self.filelinkb))
3121 self.assertPathEqual(path, self.filelinkb_target)
3122 self.assertIsInstance(path, bytes)
3123
3124 @os_helper.skip_unless_symlink
3125 def test_bytes(self):

Callers

nothing calls this directly

Calls 5

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

Tested by

no test coverage detected