Skip to content

Commit 3856b24

Browse files
committed
Fix test.
1 parent c50c5db commit 3856b24

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

xarray/core/groupby.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -400,7 +400,7 @@ def __init__(
400400
unique_coord: DataArray | IndexVariable | _DummyGroup
401401
if grouper is not None:
402402
index = safe_cast_to_index(group)
403-
if not index.is_montonic_increasing:
403+
if not index.is_monotonic_increasing:
404404
# TODO: sort instead of raising an error
405405
raise ValueError(
406406
"Index must be monotonic and increasing for resampling."

xarray/tests/test_groupby.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1504,7 +1504,7 @@ def test_resample(self):
15041504
expected = DataArray.from_series(expected_)
15051505
assert_identical(actual, expected)
15061506

1507-
with pytest.raises(ValueError, match=r"index must be monotonic"):
1507+
with pytest.raises(ValueError, match=r"Index must be monotonic"):
15081508
array[[2, 0, 1]].resample(time="1D")
15091509

15101510
reverse = array.isel(time=slice(-1, None, -1))

0 commit comments

Comments
 (0)