Skip to content

Commit 80992a3

Browse files
committed
xfail zip compression csv pickle in python 2.x
1 parent 694c6b5 commit 80992a3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pandas/tests/io/test_pickle.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -357,6 +357,9 @@ def test_write_explicit(self, compression, get_random_path):
357357
path1 = base + ".compressed"
358358
path2 = base + ".raw"
359359

360+
if PY2 and compression == 'zip':
361+
pytest.xfail(reason='zip compression not supported in Python 2.')
362+
360363
with tm.ensure_clean(path1) as p1, tm.ensure_clean(path2) as p2:
361364
df = tm.makeDataFrame()
362365

@@ -416,9 +419,6 @@ def test_read_explicit(self, compression, get_random_path):
416419
path1 = base + ".raw"
417420
path2 = base + ".compressed"
418421

419-
if PY2 and compression == 'zip':
420-
pytest.xfail(reason='zip compression not supported in Python 2.')
421-
422422
with tm.ensure_clean(path1) as p1, tm.ensure_clean(path2) as p2:
423423
df = tm.makeDataFrame()
424424

0 commit comments

Comments
 (0)