MCPcopy Index your code
hub / github.com/RustPython/RustPython / test_await_4

Method test_await_4

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

Source from the content-addressed store, hash-verified

999 self.assertEqual(run_async__await__(foo()), ([1, 2, 3], None))
1000
1001 def test_await_4(self):
1002 async def bar():
1003 return 42
1004
1005 async def foo():
1006 return await bar()
1007
1008 self.assertEqual(run_async(foo()), ([], 42))
1009
1010 def test_await_5(self):
1011 class Awaitable:

Callers

nothing calls this directly

Calls 3

run_asyncFunction · 0.70
fooFunction · 0.70
assertEqualMethod · 0.45

Tested by

no test coverage detected