MCPcopy
hub / github.com/dask/dask / test_task_nested_sequence

Function test_task_nested_sequence

dask/tests/test_task_spec.py:183–196  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

181
182
183def test_task_nested_sequence():
184 # We do **not** recurse into structures since this kills performance
185 # we're only considering top-level task objects as arguments or kwargs
186 t1 = Task("key-1", func, "a", "b")
187 t2 = Task("key-2", func2, "c", "d")
188
189 tseq = Task("seq", identity, [t1, t2])
190 assert tseq() == [t1, t2]
191
192 tseq = Task("set", identity, {t1, t2})
193 assert tseq() == {t1, t2}
194
195 tseq = Task("dict", identity, {"a": t1, "b": t2})
196 assert tseq() == {"a": t1, "b": t2}
197
198
199def test_reference_remote():

Callers

nothing calls this directly

Calls 1

TaskClass · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…