Skip to content

Commit 471319b

Browse files
authored
CI: xfail geopandas downstream test on MacOS due to fiona install (#46296)
* CI: xfail geopandas downstream test on MacOS due to fiona install * More specific case * Just skip generally for mac
1 parent 0453fdf commit 471319b

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

pandas/tests/test_downstream.py

+8
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
import numpy as np
99
import pytest
1010

11+
from pandas.compat import is_platform_mac
1112
import pandas.util._test_decorators as td
1213

1314
import pandas as pd
@@ -196,6 +197,13 @@ def test_pandas_datareader():
196197

197198
# importing from pandas, Cython import warning
198199
@pytest.mark.filterwarnings("ignore:can't resolve:ImportWarning")
200+
@pytest.mark.xfail(
201+
is_platform_mac(),
202+
raises=ImportError,
203+
reason="ImportError: the 'read_file' function requires the 'fiona' package, "
204+
"but it is not installed or does not import correctly",
205+
strict=False,
206+
)
199207
def test_geopandas():
200208

201209
geopandas = import_module("geopandas")

0 commit comments

Comments
 (0)