Skip to content

Commit d64f79b

Browse files
committed
GH17778: add 'zip' format to unittests.
1 parent 798401b commit d64f79b

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

pandas/tests/io/test_pickle.py

+4-3
Original file line numberDiff line numberDiff line change
@@ -382,7 +382,7 @@ def decompress_file(self, src_path, dest_path, compression):
382382
fh.write(f.read())
383383
f.close()
384384

385-
@pytest.mark.parametrize('compression', [None, 'gzip', 'bz2', 'xz'])
385+
@pytest.mark.parametrize('compression', [None, 'gzip', 'zip', 'bz2', 'xz'])
386386
def test_write_explicit(self, compression, get_random_path):
387387
# issue 11666
388388
if compression == 'xz':
@@ -414,7 +414,8 @@ def test_write_explicit_bad(self, compression, get_random_path):
414414
df = tm.makeDataFrame()
415415
df.to_pickle(path, compression=compression)
416416

417-
@pytest.mark.parametrize('ext', ['', '.gz', '.bz2', '.xz', '.no_compress'])
417+
@pytest.mark.parametrize('ext', ['', '.gz', '.zip', '.bz2', '.xz',
418+
'.no_compress'])
418419
def test_write_infer(self, ext, get_random_path):
419420
if ext == '.xz':
420421
tm._skip_if_no_lzma()
@@ -442,7 +443,7 @@ def test_write_infer(self, ext, get_random_path):
442443

443444
tm.assert_frame_equal(df, df2)
444445

445-
@pytest.mark.parametrize('compression', [None, 'gzip', 'bz2', 'xz', "zip"])
446+
@pytest.mark.parametrize('compression', [None, 'gzip', 'bz2', 'xz', 'zip'])
446447
def test_read_explicit(self, compression, get_random_path):
447448
# issue 11666
448449
if compression == 'xz':

0 commit comments

Comments
 (0)