Skip to content

Commit

Permalink
CI: xfail test_to_xarray_index_types due to new 2024.5 release (#58719)
Browse files Browse the repository at this point in the history
CI: xfail test_to_xarray_index_types
  • Loading branch information
mroeschke committed May 14, 2024
1 parent d409b2d commit 986074b
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion pandas/tests/generic/test_to_xarray.py
Expand Up @@ -9,6 +9,7 @@
date_range,
)
import pandas._testing as tm
from pandas.util.version import Version

pytest.importorskip("xarray")

Expand All @@ -29,11 +30,17 @@ def df(self):
}
)

def test_to_xarray_index_types(self, index_flat, df, using_infer_string):
def test_to_xarray_index_types(self, index_flat, df, using_infer_string, request):
index = index_flat
# MultiIndex is tested in test_to_xarray_with_multiindex
if len(index) == 0:
pytest.skip("Test doesn't make sense for empty index")
import xarray

if Version(xarray.__version__) >= Version("2024.5"):
request.applymarker(
pytest.mark.xfail(reason="https://github.com/pydata/xarray/issues/9026")
)

from xarray import Dataset

Expand Down

0 comments on commit 986074b

Please sign in to comment.