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

Method test_await_1

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

Source from the content-addressed store, hash-verified

971 c.close()
972
973 def test_await_1(self):
974
975 async def foo():
976 await 1
977 with self.assertRaisesRegex(TypeError, "'int' object can.t be awaited"):
978 run_async(foo())
979
980 def test_await_2(self):
981 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