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

Function test_compute_nested

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

Source from the content-addressed store, hash-verified

509
510
511def test_compute_nested():
512 a = delayed(1) + 5
513 b = a + 1
514 c = a + 2
515 assert compute({"a": a, "b": [1, 2, b]}, (c, 2)) == (
516 {"a": 6, "b": [1, 2, 7]},
517 (8, 2),
518 )
519
520 res = compute([a, b], c, traverse=False)
521 assert res[0][0] is a
522 assert res[0][1] is b
523 assert res[1] == 8
524
525
526@pytest.mark.skipif("not da")

Callers

nothing calls this directly

Calls 2

delayedFunction · 0.90
computeFunction · 0.90

Tested by

no test coverage detected