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

Function test_from_delayed_future

dask/array/tests/test_array_core.py:3910–3919  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

3908
3909
3910def test_from_delayed_future():
3911 # https://github.com/dask/distributed/issues/9050
3912 distributed = pytest.importorskip("distributed")
3913 arr = np.zeros((10, 10))
3914
3915 with distributed.Client(n_workers=1, processes=False) as client:
3916 fut = client.scatter(arr)
3917 result = da.from_delayed(fut, shape=arr.shape, meta=arr[:0, :0])
3918 del fut
3919 assert_eq(result, arr, scheduler=client)
3920
3921
3922def test_A_property():

Callers

nothing calls this directly

Calls 3

assert_eqFunction · 0.90
from_delayedMethod · 0.80
zerosMethod · 0.45

Tested by

no test coverage detected