(self)
| 2692 | self.assertRaises(ValueError, tarinfo.tobuf, tarfile.GNU_FORMAT) |
| 2693 | |
| 2694 | def test_pax_limits(self): |
| 2695 | tarinfo = tarfile.TarInfo("123/" * 126 + "longname") |
| 2696 | tarinfo.tobuf(tarfile.PAX_FORMAT) |
| 2697 | |
| 2698 | tarinfo = tarfile.TarInfo("longlink") |
| 2699 | tarinfo.linkname = "123/" * 126 + "longname" |
| 2700 | tarinfo.tobuf(tarfile.PAX_FORMAT) |
| 2701 | |
| 2702 | tarinfo = tarfile.TarInfo("name") |
| 2703 | tarinfo.uid = 0o4000000000000000000 |
| 2704 | tarinfo.tobuf(tarfile.PAX_FORMAT) |
| 2705 | |
| 2706 | |
| 2707 | class MiscTest(unittest.TestCase): |