(self, name)
| 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"), |
no test coverage detected