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

Method _test_link_extraction

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

Source from the content-addressed store, hash-verified

3115 # symbolic or hard links tarfile tries to extract these types of members
3116 # as the regular files they point to.
3117 def _test_link_extraction(self, name):
3118 self.tar.extract(name, TEMPDIR, filter='fully_trusted')
3119 with open(os.path.join(TEMPDIR, name), "rb") as f:
3120 data = f.read()
3121 self.assertEqual(sha256sum(data), sha256_regtype)
3122
3123 # See issues #1578269, #8879, and #17689 for some history on these skips
3124 @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