(self)
| 773 | os_helper.rmtree(DIR) |
| 774 | |
| 775 | def test_extractall_pathlike_dir(self): |
| 776 | DIR = os.path.join(TEMPDIR, "extractall") |
| 777 | with os_helper.temp_dir(DIR), \ |
| 778 | tarfile.open(tarname, encoding="iso8859-1") as tar: |
| 779 | directories = [t for t in tar if t.isdir()] |
| 780 | tar.extractall(os_helper.FakePath(DIR), directories, filter='fully_trusted') |
| 781 | for tarinfo in directories: |
| 782 | path = os.path.join(DIR, tarinfo.name) |
| 783 | self.assertEqual(os.path.getmtime(path), tarinfo.mtime) |
| 784 | |
| 785 | def test_extract_pathlike_dir(self): |
| 786 | dirtype = "ustar/dirtype" |
nothing calls this directly
no test coverage detected