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

Method test_await_2

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

Source from the content-addressed store, hash-verified

986 run_async(foo())
987
988 def test_await_2(self):
989 async def foo():
990 await []
991 with self.assertRaisesRegex(TypeError, "'list' object can.t be awaited"):
992 run_async(foo())
993
994 def test_await_3(self):
995 async def foo():

Callers

nothing calls this directly

Calls 3

assertRaisesRegexMethod · 0.80
run_asyncFunction · 0.70
fooFunction · 0.70

Tested by

no test coverage detected