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

Method test_await_2

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

Source from the content-addressed store, hash-verified

978 run_async(foo())
979
980 def test_await_2(self):
981 async def foo():
982 await []
983 with self.assertRaisesRegex(TypeError, "'list' object can.t be awaited"):
984 run_async(foo())
985
986 def test_await_3(self):
987 async def foo():

Callers

nothing calls this directly

Calls 3

run_asyncFunction · 0.85
assertRaisesRegexMethod · 0.80
fooFunction · 0.70

Tested by

no test coverage detected