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

Method test_await_4

Lib/test/test_coroutines.py:993–1000  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

991 self.assertEqual(run_async__await__(foo()), ([1, 2, 3], None))
992
993 def test_await_4(self):
994 async def bar():
995 return 42
996
997 async def foo():
998 return await bar()
999
1000 self.assertEqual(run_async(foo()), ([], 42))
1001
1002 def test_await_5(self):
1003 class Awaitable:

Callers

nothing calls this directly

Calls 3

run_asyncFunction · 0.85
fooFunction · 0.70
assertEqualMethod · 0.45

Tested by

no test coverage detected