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

Method test_bytes

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

Source from the content-addressed store, hash-verified

3075
3076 @os_helper.skip_unless_symlink
3077 def test_bytes(self):
3078 os.symlink(self.filelinkb_target, self.filelinkb)
3079 self.addCleanup(os_helper.unlink, self.filelinkb)
3080 path = os.readlink(self.filelinkb)
3081 self.assertPathEqual(path, self.filelinkb_target)
3082 self.assertIsInstance(path, bytes)
3083
3084
3085@unittest.skipUnless(sys.platform == "win32", "Win32 specific tests")

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