diff --git a/pandas/tests/generic/test_to_xarray.py b/pandas/tests/generic/test_to_xarray.py index 8917e4e3f3854..5f805ab37c396 100644 --- a/pandas/tests/generic/test_to_xarray.py +++ b/pandas/tests/generic/test_to_xarray.py @@ -93,6 +93,7 @@ def test_to_xarray_index_types(self, index_flat, request): isinstance(index.dtype, StringDtype) and index.dtype.storage == "pyarrow" and Version(xarray.__version__) > Version("2024.9.0") + and Version(xarray.__version__) < Version("2025.6.0") ): request.applymarker( pytest.mark.xfail(