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

Method test_parallel_iteration

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

Source from the content-addressed store, hash-verified

812 os_helper.unlink(empty)
813
814 def test_parallel_iteration(self):
815 # Issue #16601: Restarting iteration over tarfile continued
816 # from where it left off.
817 with tarfile.open(self.tarname) as tar:
818 for m1, m2 in zip(tar, tar):
819 self.assertEqual(m1.offset, m2.offset)
820 self.assertEqual(m1.get_info(), m2.get_info())
821
822 @unittest.skipIf(zlib is None, "requires zlib")
823 def test_zlib_error_does_not_leak(self):

Callers

nothing calls this directly

Calls 3

openMethod · 0.45
assertEqualMethod · 0.45
get_infoMethod · 0.45

Tested by

no test coverage detected