@@ -456,7 +456,7 @@ def test_zero_padded_file(self):
456
456
def test_igzip_BadGzipFile_exception (self ):
457
457
self .assertTrue (issubclass (igzip .BadGzipFile , OSError ))
458
458
459
- def test_bad_igzip_file (self ):
459
+ def test_bad_gzip_file (self ):
460
460
with open (self .filename , 'wb' ) as file :
461
461
file .write (data1 * 50 )
462
462
with igzip .IGzipFile (self .filename , 'r' ) as file :
@@ -555,7 +555,7 @@ def test_bytes_filename(self):
555
555
556
556
def test_decompress_limited (self ):
557
557
"""Decompressed data buffering should be limited"""
558
- bomb = igzip .compress (b'\0 ' * int (2e6 ), compresslevel = 9 )
558
+ bomb = igzip .compress (b'\0 ' * int (2e6 ), compresslevel = 3 )
559
559
self .assertLess (len (bomb ), io .DEFAULT_BUFFER_SIZE )
560
560
561
561
bomb = io .BytesIO (bomb )
@@ -569,7 +569,7 @@ def test_decompress_limited(self):
569
569
570
570
def test_compress (self ):
571
571
for data in [data1 , data2 ]:
572
- for args in [(), (1 ,), (6 ,), (9 ,)]:
572
+ for args in [(), (1 ,), (2 ,), (3 ,), ( 0 ,)]:
573
573
datac = igzip .compress (data , * args )
574
574
self .assertEqual (type (datac ), bytes )
575
575
with igzip .IGzipFile (fileobj = io .BytesIO (datac ), mode = "rb" ) as f :
0 commit comments