(self)
| 3257 | os.mkdir(TESTFN2) |
| 3258 | |
| 3259 | def test_extract_dir(self): |
| 3260 | with zipfile.ZipFile(findfile("zipdir.zip", subdir="archivetestdata")) as zipf: |
| 3261 | zipf.extractall(TESTFN2) |
| 3262 | self.assertTrue(os.path.isdir(os.path.join(TESTFN2, "a"))) |
| 3263 | self.assertTrue(os.path.isdir(os.path.join(TESTFN2, "a", "b"))) |
| 3264 | self.assertTrue(os.path.exists(os.path.join(TESTFN2, "a", "b", "c"))) |
| 3265 | |
| 3266 | def test_bug_6050(self): |
| 3267 | # Extraction should succeed if directories already exist |
no test coverage detected