We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 18f4176 commit 099fc68Copy full SHA for 099fc68
tests/test_gzip_compliance.py
@@ -624,8 +624,7 @@ def test_read_truncated(self):
624
with igzip.GzipFile(fileobj=io.BytesIO(truncated)) as f:
625
self.assertRaises(EOFError, f.read)
626
627
- self.assertEqual(f.read(len(data)), data)
628
- self.assertRaises(EOFError, f.read, 1)
+ self.assertRaises(EOFError, f.read, len(data))
629
# Incomplete 10-byte header.
630
for i in range(2, 10):
631
with igzip.GzipFile(fileobj=io.BytesIO(truncated[:i])) as f:
0 commit comments