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

Function test_async_func

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

Source from the content-addressed store, hash-verified

352
353
354def test_async_func():
355 pytest.importorskip("distributed")
356
357 from distributed.utils_test import gen_test
358
359 @gen_test()
360 async def _():
361
362 t = Task("key-1", afunc, "a", "b")
363 assert t.is_coro
364 assert await t() == "ab"
365 assert await pickle.loads(pickle.dumps(t))() == "ab"
366
367 _()
368
369
370def test_parse_curry():

Callers

nothing calls this directly

Calls 1

_Function · 0.70

Tested by

no test coverage detected