Skip to content

Commit baee201

Browse files
keewisandersy005
authored andcommitted
skip the pandas datetime roundtrip test with pandas=3.0 (#9104)
* skip the roundtrip test with `pandas=3.0` * mention the relevant issue in the skip reason
1 parent adc01be commit baee201

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

properties/test_pandas_roundtrip.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
import pytest
1010

1111
import xarray as xr
12+
from xarray.tests import has_pandas_3
1213

1314
pytest.importorskip("hypothesis")
1415
import hypothesis.extra.numpy as npst # isort:skip
@@ -110,6 +111,10 @@ def test_roundtrip_pandas_dataframe(df) -> None:
110111
xr.testing.assert_identical(arr, roundtripped.to_xarray())
111112

112113

114+
@pytest.mark.skipif(
115+
has_pandas_3,
116+
reason="fails to roundtrip on pandas 3 (see https://github.com/pydata/xarray/issues/9098)",
117+
)
113118
@given(df=dataframe_strategy)
114119
def test_roundtrip_pandas_dataframe_datetime(df) -> None:
115120
# Need to name the indexes, otherwise Xarray names them 'dim_0', 'dim_1'.

0 commit comments

Comments
 (0)