Skip to content
forked from pydata/xarray

Commit

Permalink
make sure unify_chunks does not compute.
Browse files Browse the repository at this point in the history
  • Loading branch information
dcherian committed Oct 1, 2019
1 parent ae53b85 commit f6dfb12
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion xarray/tests/test_dask.py
Original file line number Diff line number Diff line change
Expand Up @@ -965,7 +965,8 @@ def test_unify_chunks(obj):
ds_copy.chunks

expected_chunks = {"x": (4, 4, 2), "y": (5, 5, 5, 5), "z": (4,)}
actual_chunks = ds_copy.unify_chunks().chunks
with raise_if_dask_computes():
actual_chunks = ds_copy.unify_chunks().chunks
expected_chunks == actual_chunks
assert_identical(map_ds, ds_copy.unify_chunks())

Expand Down

0 comments on commit f6dfb12

Please sign in to comment.