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

Function test_checkpoint

dask/tests/test_graph_manipulation.py:131–135  ·  view source on GitHub ↗
(layers)

Source from the content-addressed store, hash-verified

129
130@pytest.mark.parametrize("layers", [False, True])
131def test_checkpoint(layers):
132 t1, t2, cnt = demo_tuples(layers)
133 cp = checkpoint(t1, {"x": [t2]})
134 assert cp.compute(scheduler="sync") is None
135 assert cnt.n == 5
136
137
138@pytest.mark.skipif("not da or not dd")

Callers

nothing calls this directly

Calls 3

checkpointFunction · 0.90
demo_tuplesFunction · 0.85
computeMethod · 0.45

Tested by

no test coverage detected