MCPcopy Create free account
hub / github.com/dask/dask / custom_scheduler_get

Function custom_scheduler_get

dask/array/tests/test_xarray.py:94–99  ·  view source on GitHub ↗
(dsk, keys, expected, **kwargs)

Source from the content-addressed store, hash-verified

92@pytest.mark.parametrize("compute", [True, False])
93def test_xarray_blockwise_fusion_store(compute):
94 def custom_scheduler_get(dsk, keys, expected, **kwargs):
95 dsk = dsk.__dask_graph__()
96 assert (
97 len(dsk) == expected
98 ), f"False number of tasks got {len(dsk)} but expected {expected}"
99 return [42 for _ in keys]
100
101 # First test that this mocking stuff works as expecged
102 with pytest.raises(AssertionError, match="False number of tasks"):

Callers

nothing calls this directly

Calls 1

__dask_graph__Method · 0.45

Tested by

no test coverage detected