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

Method test_await_3

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

Source from the content-addressed store, hash-verified

984 run_async(foo())
985
986 def test_await_3(self):
987 async def foo():
988 await AsyncYieldFrom([1, 2, 3])
989
990 self.assertEqual(run_async(foo()), ([1, 2, 3], None))
991 self.assertEqual(run_async__await__(foo()), ([1, 2, 3], None))
992
993 def test_await_4(self):
994 async def bar():

Callers

nothing calls this directly

Calls 4

run_asyncFunction · 0.85
run_async__await__Function · 0.85
fooFunction · 0.70
assertEqualMethod · 0.45

Tested by

no test coverage detected