diff --git a/pandas/tests/test_downstream.py b/pandas/tests/test_downstream.py index c1e7a8ae883ae..83b476fefea46 100644 --- a/pandas/tests/test_downstream.py +++ b/pandas/tests/test_downstream.py @@ -8,6 +8,7 @@ import numpy as np import pytest +from pandas.compat import is_platform_windows import pandas.util._test_decorators as td import pandas as pd @@ -225,6 +226,13 @@ def test_pandas_datareader(): # importing from pandas, Cython import warning @pytest.mark.filterwarnings("ignore:can't resolve:ImportWarning") +@pytest.mark.xfail( + is_platform_windows(), + raises=ImportError, + reason="ImportError: the 'read_file' function requires the 'fiona' package, " + "but it is not installed or does not import correctly", + strict=False, +) def test_geopandas(): geopandas = import_module("geopandas")