Skip to content

Commit 888dfdb

Browse files
authored
Remove test_dask_layers_and_dependencies (#10242)
1 parent ee862fe commit 888dfdb

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

xarray/tests/test_dask.py

+2-8
Original file line numberDiff line numberDiff line change
@@ -1042,16 +1042,10 @@ def test_basic_compute():
10421042
ds.foo.variable.compute()
10431043

10441044

1045-
def test_dask_layers_and_dependencies():
1045+
def test_dataset_as_delayed():
10461046
ds = Dataset({"foo": ("x", range(5)), "bar": ("x", range(5))}).chunk()
10471047

1048-
x = dask.delayed(ds)
1049-
assert set(x.__dask_graph__().dependencies).issuperset(
1050-
ds.__dask_graph__().dependencies
1051-
)
1052-
assert set(x.foo.__dask_graph__().dependencies).issuperset(
1053-
ds.__dask_graph__().dependencies
1054-
)
1048+
assert dask.delayed(ds).compute() == ds.compute()
10551049

10561050

10571051
def make_da():

0 commit comments

Comments
 (0)