MCPcopy
hub / github.com/dask/dask / test_reference_remote_twice_same

Function test_reference_remote_twice_same

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

Source from the content-addressed store, hash-verified

205
206
207def test_reference_remote_twice_same():
208 t1 = Task("key-1", func, "a", "b")
209 t2 = Task("key-2", func2, TaskRef("key-1"), TaskRef("key-1"))
210 with pytest.raises(RuntimeError):
211 t2()
212 assert t2({"key-1": t1()}) == func2(func("a", "b"), func("a", "b"))
213
214
215def test_reference_remote_twice_different():

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…