MCPcopy Index your code
hub / github.com/dask/dask / test_compute_nested

Function test_compute_nested

dask/tests/test_base.py:522–534  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

520
521
522def test_compute_nested():
523 a = delayed(1) + 5
524 b = a + 1
525 c = a + 2
526 assert compute({"a": a, "b": [1, 2, b]}, (c, 2)) == (
527 {"a": 6, "b": [1, 2, 7]},
528 (8, 2),
529 )
530
531 res = compute([a, b], c, traverse=False)
532 assert res[0][0] is a
533 assert res[0][1] is b
534 assert res[1] == 8
535
536
537@pytest.mark.skipif("not da")

Callers

nothing calls this directly

Calls 2

delayedFunction · 0.90
computeFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…