diff --git a/properties/test_pandas_roundtrip.py b/properties/test_pandas_roundtrip.py index ca5490bcea2..0249aa59d5b 100644 --- a/properties/test_pandas_roundtrip.py +++ b/properties/test_pandas_roundtrip.py @@ -9,6 +9,7 @@ import pytest import xarray as xr +from xarray.tests import has_pandas_3 pytest.importorskip("hypothesis") import hypothesis.extra.numpy as npst # isort:skip @@ -110,6 +111,10 @@ def test_roundtrip_pandas_dataframe(df) -> None: xr.testing.assert_identical(arr, roundtripped.to_xarray()) +@pytest.mark.skipif( + has_pandas_3, + reason="fails to roundtrip on pandas 3 (see https://github.com/pydata/xarray/issues/9098)", +) @given(df=dataframe_strategy) def test_roundtrip_pandas_dataframe_datetime(df) -> None: # Need to name the indexes, otherwise Xarray names them 'dim_0', 'dim_1'.