(self, data)
| 2595 | # Append mode is supposed to fail if the tarfile to append to |
| 2596 | # does not end with a zero block. |
| 2597 | def _test_error(self, data): |
| 2598 | with open(self.tarname, "wb") as fobj: |
| 2599 | fobj.write(data) |
| 2600 | self.assertRaises(tarfile.ReadError, self._add_testfile) |
| 2601 | |
| 2602 | def test_null(self): |
| 2603 | self._test_error(b"") |
no test coverage detected