Restored test_interleaved. After issue #8886 it was a duplicate of

test_different_file.
This commit is contained in:
Serhiy Storchaka 2016-05-13 21:19:22 +03:00
commit 91762da45b

View file

@ -1867,8 +1867,9 @@ class TestsWithMultipleOpens(unittest.TestCase):
for f in get_files(self):
self.make_test_archive(f)
with zipfile.ZipFile(f, mode="r") as zipf:
with zipf.open('ones') as zopen1, zipf.open('twos') as zopen2:
with zipf.open('ones') as zopen1:
data1 = zopen1.read(500)
with zipf.open('twos') as zopen2:
data2 = zopen2.read(500)
data1 += zopen1.read()
data2 += zopen2.read()