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