@@ -382,7 +382,7 @@ def decompress_file(self, src_path, dest_path, compression):
382
382
fh .write (f .read ())
383
383
f .close ()
384
384
385
- @pytest .mark .parametrize ('compression' , [None , 'gzip' , 'bz2' , 'xz' ])
385
+ @pytest .mark .parametrize ('compression' , [None , 'gzip' , 'zip' , ' bz2' , 'xz' ])
386
386
def test_write_explicit (self , compression , get_random_path ):
387
387
# issue 11666
388
388
if compression == 'xz' :
@@ -414,7 +414,8 @@ def test_write_explicit_bad(self, compression, get_random_path):
414
414
df = tm .makeDataFrame ()
415
415
df .to_pickle (path , compression = compression )
416
416
417
- @pytest .mark .parametrize ('ext' , ['' , '.gz' , '.bz2' , '.xz' , '.no_compress' ])
417
+ @pytest .mark .parametrize ('ext' , ['' , '.gz' , '.zip' , '.bz2' , '.xz' ,
418
+ '.no_compress' ])
418
419
def test_write_infer (self , ext , get_random_path ):
419
420
if ext == '.xz' :
420
421
tm ._skip_if_no_lzma ()
@@ -442,7 +443,7 @@ def test_write_infer(self, ext, get_random_path):
442
443
443
444
tm .assert_frame_equal (df , df2 )
444
445
445
- @pytest .mark .parametrize ('compression' , [None , 'gzip' , 'bz2' , 'xz' , " zip" ])
446
+ @pytest .mark .parametrize ('compression' , [None , 'gzip' , 'bz2' , 'xz' , ' zip' ])
446
447
def test_read_explicit (self , compression , get_random_path ):
447
448
# issue 11666
448
449
if compression == 'xz' :
0 commit comments