(self, data)
| 2612 | # Append mode is supposed to fail if the tarfile to append to |
| 2613 | # does not end with a zero block. |
| 2614 | def _test_error(self, data): |
| 2615 | with open(self.tarname, "wb") as fobj: |
| 2616 | fobj.write(data) |
| 2617 | self.assertRaises(tarfile.ReadError, self._add_testfile) |
| 2618 | |
| 2619 | def test_null(self): |
| 2620 | self._test_error(b"") |
no test coverage detected