MCPcopy
hub / github.com/dask/dask / test_method_getattr_call_same_task

Function test_method_getattr_call_same_task

dask/tests/test_delayed.py:274–280  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

272
273
274def test_method_getattr_call_same_task():
275 a = delayed([1, 2, 3])
276 o = a.index(1)
277 # Don't getattr the method, then call in separate task
278 tasks = {v.func for v in o.__dask_graph__().values() if isinstance(v, Task)}
279 assert tasks
280 assert getattr not in tasks
281
282
283def test_np_dtype_of_delayed():

Callers

nothing calls this directly

Calls 4

delayedFunction · 0.90
indexMethod · 0.45
valuesMethod · 0.45
__dask_graph__Method · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…