MCPcopy
hub / github.com/dask/dask / test_reference_remote_twice_different

Function test_reference_remote_twice_different

dask/tests/test_task_spec.py:215–221  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

213
214
215def test_reference_remote_twice_different():
216 t1 = Task("key-1", func, "a", "b")
217 t2 = Task("key-2", func, "c", "d")
218 t3 = Task("key-3", func2, TaskRef("key-1"), TaskRef("key-2"))
219 with pytest.raises(RuntimeError):
220 t3()
221 assert t3({"key-1": t1(), "key-2": t2()}) == func2(func("a", "b"), func("c", "d"))
222
223
224def test_task_nested():

Callers

nothing calls this directly

Calls 4

TaskClass · 0.90
TaskRefClass · 0.90
func2Function · 0.70
funcFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…