Skip to content

Remove test_dask_layers_and_dependencies #10242

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Apr 22, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 2 additions & 8 deletions xarray/tests/test_dask.py
Original file line number Diff line number Diff line change
Expand Up @@ -1042,16 +1042,10 @@ def test_basic_compute():
ds.foo.variable.compute()


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

x = dask.delayed(ds)
assert set(x.__dask_graph__().dependencies).issuperset(
ds.__dask_graph__().dependencies
)
assert set(x.foo.__dask_graph__().dependencies).issuperset(
ds.__dask_graph__().dependencies
)
assert dask.delayed(ds).compute() == ds.compute()


def make_da():
Expand Down
Loading