Skip to content
forked from pydata/xarray

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
dcherian committed Nov 3, 2024
1 parent f624c8f commit 888e780
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
4 changes: 3 additions & 1 deletion xarray/tests/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,9 @@ def _importorskip(
has_h5netcdf, requires_h5netcdf = _importorskip("h5netcdf")
has_cftime, requires_cftime = _importorskip("cftime")
has_dask, requires_dask = _importorskip("dask")
has_dask_ge_2024_08_1, _ = _importorskip("dask", minversion="2024.08.1")
has_dask_ge_2024_08_1, requires_dask_ge_2024_08_1 = _importorskip(
"dask", minversion="2024.08.1"
)
with warnings.catch_warnings():
warnings.filterwarnings(
"ignore",
Expand Down
2 changes: 2 additions & 0 deletions xarray/tests/test_dask.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
assert_identical,
mock,
raise_if_dask_computes,
requires_dask_ge_2024_08_1,
requires_pint,
requires_scipy_or_netCDF4,
)
Expand Down Expand Up @@ -1813,6 +1814,7 @@ def test_minimize_graph_size():
assert actual == numchunks[var], (actual, numchunks[var])


@requires_dask_ge_2024_08_1
@pytest.mark.parametrize(
"chunks, expected_chunks",
[
Expand Down
3 changes: 2 additions & 1 deletion xarray/tests/test_groupby.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
raise_if_dask_computes,
requires_cftime,
requires_dask,
requires_dask_ge_2024_08_1,
requires_flox,
requires_flox_0_9_12,
requires_pandas_ge_2_2,
Expand Down Expand Up @@ -3048,7 +3049,7 @@ def test_groupby_multiple_bin_grouper_missing_groups():
assert_identical(actual, expected)


@requires_dask
@requires_dask_ge_2024_08_1
def test_shuffle_by_simple() -> None:
da = xr.DataArray(
dims="x",
Expand Down

0 comments on commit 888e780

Please sign in to comment.