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

Method test_bytes

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

Source from the content-addressed store, hash-verified

3123
3124 @os_helper.skip_unless_symlink
3125 def test_bytes(self):
3126 os.symlink(self.filelinkb_target, self.filelinkb)
3127 self.addCleanup(os_helper.unlink, self.filelinkb)
3128 path = os.readlink(self.filelinkb)
3129 self.assertPathEqual(path, self.filelinkb_target)
3130 self.assertIsInstance(path, bytes)
3131
3132
3133@os_helper.skip_unless_symlink

Callers

nothing calls this directly

Calls 4

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

Tested by

no test coverage detected