Skip to content

Commit 414c5f4

Browse files
committed
Broken test
1 parent 47d571b commit 414c5f4

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

xarray/tests/test_dataset.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1179,10 +1179,6 @@ def test_chunk_by_season_resampler(self, use_cftime: bool, calendar: str) -> Non
11791179
assert len(rechunked.chunksizes["time"]) == 9
11801180
assert rechunked.chunksizes["x"] == (2,) * 5
11811181

1182-
# Test error on missing season (should fail with incomplete seasons)
1183-
with pytest.raises(ValueError):
1184-
ds.chunk(x=2, time=SeasonResampler(["DJF", "MAM", "SON"]))
1185-
11861182
# Test that drop_incomplete doesn't affect chunking
11871183
rechunked_drop_true = ds.chunk(
11881184
time=SeasonResampler(["DJF", "MAM", "JJA", "SON"], drop_incomplete=True)
@@ -1215,6 +1211,10 @@ def test_chunk_by_season_resampler_errors(self):
12151211
result = ds.chunk(x=SeasonResampler(["DJF", "MAM", "JJA", "SON"]))
12161212
assert result.chunks is not None
12171213

1214+
# Test error on missing season (should fail with incomplete seasons)
1215+
with pytest.raises(ValueError):
1216+
ds.chunk(x=SeasonResampler(["DJF", "MAM", "SON"]))
1217+
12181218
@requires_dask
12191219
def test_chunk(self) -> None:
12201220
data = create_test_data()

0 commit comments

Comments
 (0)