MCPcopy
hub / github.com/dask/dask / test_optimize_graph_false

Function test_optimize_graph_false

dask/tests/test_multiprocessing.py:148–155  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

146
147
148def test_optimize_graph_false():
149 from dask.callbacks import Callback
150
151 d = {"x": 1, "y": (inc, "x"), "z": (add, 10, "y")}
152 keys = []
153 with Callback(pretask=lambda key, *args: keys.append(key)):
154 get(d, "z", optimize_graph=False)
155 assert len(keys) == 2
156
157
158def test_works_with_highlevel_graph():

Callers

nothing calls this directly

Calls 2

CallbackClass · 0.90
getFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…