@@ -456,7 +456,7 @@ def test_zero_padded_file(self):
456456 def test_igzip_BadGzipFile_exception (self ):
457457 self .assertTrue (issubclass (igzip .BadGzipFile , OSError ))
458458
459- def test_bad_igzip_file (self ):
459+ def test_bad_gzip_file (self ):
460460 with open (self .filename , 'wb' ) as file :
461461 file .write (data1 * 50 )
462462 with igzip .IGzipFile (self .filename , 'r' ) as file :
@@ -555,7 +555,7 @@ def test_bytes_filename(self):
555555
556556 def test_decompress_limited (self ):
557557 """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 )
559559 self .assertLess (len (bomb ), io .DEFAULT_BUFFER_SIZE )
560560
561561 bomb = io .BytesIO (bomb )
@@ -569,7 +569,7 @@ def test_decompress_limited(self):
569569
570570 def test_compress (self ):
571571 for data in [data1 , data2 ]:
572- for args in [(), (1 ,), (6 ,), (9 ,)]:
572+ for args in [(), (1 ,), (2 ,), (3 ,), ( 0 ,)]:
573573 datac = igzip .compress (data , * args )
574574 self .assertEqual (type (datac ), bytes )
575575 with igzip .IGzipFile (fileobj = io .BytesIO (datac ), mode = "rb" ) as f :
0 commit comments