(self, mode="w:")
| 2558 | os_helper.unlink(self.tarname) |
| 2559 | |
| 2560 | def _create_testtar(self, mode="w:"): |
| 2561 | with tarfile.open(tarname, encoding="iso8859-1") as src: |
| 2562 | t = src.getmember("ustar/regtype") |
| 2563 | t.name = "foo" |
| 2564 | with src.extractfile(t) as f: |
| 2565 | with tarfile.open(self.tarname, mode) as tar: |
| 2566 | tar.addfile(t, f) |
| 2567 | |
| 2568 | def test_append_compressed(self): |
| 2569 | self._create_testtar("w:" + self.suffix) |
no test coverage detected