Skip to content

Commit 94857de

Browse files
committed
Backport fixture
1 parent 998c25b commit 94857de

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

pandas/conftest.py

+10
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,16 @@ def compression(request):
105105
return request.param
106106

107107

108+
@pytest.fixture(params=['gzip', 'bz2', 'zip',
109+
pytest.param('xz', marks=td.skip_if_no_lzma)])
110+
def compression_only(request):
111+
"""
112+
Fixture for trying common compression types in compression tests excluding
113+
uncompressed case
114+
"""
115+
return request.param
116+
117+
108118
@pytest.fixture(scope='module')
109119
def datetime_tz_utc():
110120
from datetime import timezone

0 commit comments

Comments
 (0)