Skip to content

Commit

Permalink
Mark test_use_cftime_false_standard_calendar_in_range as an expecte…
Browse files Browse the repository at this point in the history
…d failure (#8996)
  • Loading branch information
spencerkclark authored May 3, 2024
1 parent f5ae623 commit c2cd1dd
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions xarray/tests/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,7 @@ def _importorskip(
not has_scipy_or_netCDF4, reason="requires scipy or netCDF4"
)
has_numpy_array_api, requires_numpy_array_api = _importorskip("numpy", "1.26.0")
has_numpy_2, requires_numpy_2 = _importorskip("numpy", "2.0.0")


def _importorskip_h5netcdf_ros3():
Expand Down
4 changes: 4 additions & 0 deletions xarray/tests/test_backends.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@
assert_no_warnings,
has_dask,
has_netCDF4,
has_numpy_2,
has_scipy,
mock,
network,
Expand Down Expand Up @@ -5088,6 +5089,9 @@ def test_use_cftime_true(calendar, units_year) -> None:

@requires_scipy_or_netCDF4
@pytest.mark.parametrize("calendar", _STANDARD_CALENDARS)
@pytest.mark.xfail(
has_numpy_2, reason="https://github.com/pandas-dev/pandas/issues/56996"
)
def test_use_cftime_false_standard_calendar_in_range(calendar) -> None:
x = [0, 1]
time = [0, 720]
Expand Down

0 comments on commit c2cd1dd

Please sign in to comment.