MCPcopy Index your code
hub / github.com/python/cpython / test_pax_limits

Method test_pax_limits

Lib/test/test_tarfile.py:2694–2704  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

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
2707class MiscTest(unittest.TestCase):

Callers

nothing calls this directly

Calls 1

tobufMethod · 0.95

Tested by

no test coverage detected