MCPcopy Index your code
hub / github.com/python/cpython / test_run_future

Method test_run_future

Lib/test/test_asyncio/test_runners.py:327–331  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

325 runner.run(123)
326
327 def test_run_future(self):
328 with asyncio.Runner() as runner:
329 fut = runner.get_loop().create_future()
330 fut.set_result('done')
331 self.assertEqual('done', runner.run(fut))
332
333 def test_run_awaitable(self):
334 class MyAwaitable:

Callers

nothing calls this directly

Calls 5

create_futureMethod · 0.45
get_loopMethod · 0.45
set_resultMethod · 0.45
assertEqualMethod · 0.45
runMethod · 0.45

Tested by

no test coverage detected