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

Method test_pathlike_bytes

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

Source from the content-addressed store, hash-verified

3067
3068 @os_helper.skip_unless_symlink
3069 def test_pathlike_bytes(self):
3070 os.symlink(self.filelinkb_target, self.filelinkb)
3071 self.addCleanup(os_helper.unlink, self.filelinkb)
3072 path = os.readlink(FakePath(self.filelinkb))
3073 self.assertPathEqual(path, self.filelinkb_target)
3074 self.assertIsInstance(path, bytes)
3075
3076 @os_helper.skip_unless_symlink
3077 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