Skip to content

Commit 099fc68

Browse files
committed
Remove implementation-specific test from gzip compliance test
1 parent 18f4176 commit 099fc68

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

tests/test_gzip_compliance.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -624,8 +624,7 @@ def test_read_truncated(self):
624624
with igzip.GzipFile(fileobj=io.BytesIO(truncated)) as f:
625625
self.assertRaises(EOFError, f.read)
626626
with igzip.GzipFile(fileobj=io.BytesIO(truncated)) as f:
627-
self.assertEqual(f.read(len(data)), data)
628-
self.assertRaises(EOFError, f.read, 1)
627+
self.assertRaises(EOFError, f.read, len(data))
629628
# Incomplete 10-byte header.
630629
for i in range(2, 10):
631630
with igzip.GzipFile(fileobj=io.BytesIO(truncated[:i])) as f:

0 commit comments

Comments
 (0)