Skip to content

Commit

Permalink
Backport PR #59013 on branch 2.2.x (CI: remove xfail in test_to_xarra…
Browse files Browse the repository at this point in the history
…y_index_types ) (#59015)

Backport PR #59013: CI: remove xfail in test_to_xarray_index_types

Co-authored-by: Abdulaziz Aloqeely <52792999+Aloqeely@users.noreply.github.com>
  • Loading branch information
meeseeksmachine and Aloqeely committed Jun 14, 2024
1 parent 0eb84b3 commit 8882959
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions pandas/tests/generic/test_to_xarray.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
date_range,
)
import pandas._testing as tm
from pandas.util.version import Version

pytest.importorskip("xarray")

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

def test_to_xarray_index_types(self, index_flat, df, using_infer_string, request):
def test_to_xarray_index_types(self, index_flat, df, using_infer_string):
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 8882959

Please sign in to comment.