8000 Mark `test_use_cftime_false_standard_calendar_in_range` as an expecte… · pydata/xarray@c2cd1dd · GitHub
[go: up one dir, main page]

Skip to content

Commit c2cd1dd

Browse files
Mark test_use_cftime_false_standard_calendar_in_range as an expected failure (#8996)
1 parent f5ae623 commit c2cd1dd

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

xarray/tests/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,7 @@ def _importorskip(
142142
not has_scipy_or_netCDF4, reason="requires scipy or netCDF4"
143143
)
144144
has_numpy_array_api, requires_numpy_array_api = _importorskip("numpy", "1.26.0")
145+
has_numpy_2, requires_numpy_2 = _importorskip("numpy", "2.0.0")
145146

146147

147148
def _importorskip_h5netcdf_ros3():

xarray/tests/test_backends.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@
6363
assert_no_warnings,
6464
has_dask,
6565
has_netCDF4,
66+
has_numpy_2,
6667
has_scipy,
6768
mock,
6869
network,
@@ -5088,6 +5089,9 @@ def test_use_cftime_true(calendar, units_year) -> None:
50885089

50895090
@requires_scipy_or_netCDF4
50905091
@pytest.mark.parametrize("calendar", _STANDARD_CALENDARS)
5092+
@pytest.mark.xfail(
5093+
has_numpy_2, reason="https://github.com/pandas-dev/pandas/issues/56996"
5094+
)
50915095
def test_use_cftime_false_standard_calendar_in_range(calendar) -> None:
50925096
x = [0, 1]
50935097
time = [0, 720]

0 commit comments

Comments
 (0)
0