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

Function test_inline_ignores_curries_and_partials

dask/tests/test_optimization.py:291–296  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

289
290
291def test_inline_ignores_curries_and_partials():
292 dsk = {"x": 1, "y": 2, "a": (partial(add, 1), "x"), "b": (inc, "a")}
293
294 result = inline_functions(dsk, [], fast_functions={add})
295 assert result["b"] == (inc, dsk["a"])
296 assert "a" not in result
297
298
299def test_inline_functions_non_hashable():

Callers

nothing calls this directly

Calls 1

inline_functionsFunction · 0.90

Tested by

no test coverage detected