MCPcopy Index your code
hub / github.com/RustPython/RustPython / test_parallel_iteration

Method test_parallel_iteration

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

Source from the content-addressed store, hash-verified

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