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

Method _test_link_extraction

Lib/test/test_tarfile.py:3100–3104  ·  view source on GitHub ↗
(self, name)

Source from the content-addressed store, hash-verified

3098 # symbolic or hard links tarfile tries to extract these types of members
3099 # as the regular files they point to.
3100 def _test_link_extraction(self, name):
3101 self.tar.extract(name, TEMPDIR, filter='fully_trusted')
3102 with open(os.path.join(TEMPDIR, name), "rb") as f:
3103 data = f.read()
3104 self.assertEqual(sha256sum(data), sha256_regtype)
3105
3106 # See issues #1578269, #8879, and #17689 for some history on these skips
3107 @unittest.skipIf(hasattr(os.path, "islink"),

Calls 6

sha256sumFunction · 0.85
openFunction · 0.50
extractMethod · 0.45
joinMethod · 0.45
readMethod · 0.45
assertEqualMethod · 0.45

Tested by

no test coverage detected