Skip to content

Commit c6034b4

Browse files
committed
skip zip in Python 2
1 parent d35b6af commit c6034b4

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

pandas/conftest.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
import numpy
44
import pandas
55
import pandas.util._test_decorators as td
6+
from compat import PY2
67

78

89
def pytest_addoption(parser):
@@ -66,7 +67,11 @@ def ip():
6667
return InteractiveShell()
6768

6869

69-
@pytest.fixture(params=[None, 'gzip', 'bz2', 'zip',
70+
@pytest.fixture(params=[None,
71+
'gzip',
72+
'bz2',
73+
pytest.mark.skipif(PY2, reason='zip compression not'
74+
' supported in Python 2.')('zip'),
7075
pytest.param('xz', marks=td.skip_if_no_lzma)])
7176
def compression(request):
7277
"""

0 commit comments

Comments
 (0)