Skip to content

Commit 3328aa5

Browse files
committed
Explicit gzip compression of fixture to make the test work with pandas<0.16.1.
In pandas>=0.16.1 gzip compression is automatically detected based on the file_path string ending.
1 parent ef477fb commit 3328aa5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/test_dataframe_mapper.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ def iris_dataframe():
3131

3232
@pytest.fixture
3333
def cars_dataframe():
34-
return pd.read_csv("tests/test_data/cars.csv.gz")
34+
return pd.read_csv("tests/test_data/cars.csv.gz", compression='gzip')
3535

3636

3737
def test_with_iris_dataframe(iris_dataframe):

0 commit comments

Comments
 (0)