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

Method test_await_1

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

Source from the content-addressed store, hash-verified

979 c.close()
980
981 def test_await_1(self):
982
983 async def foo():
984 await 1
985 with self.assertRaisesRegex(TypeError, "'int' object can.t be awaited"):
986 run_async(foo())
987
988 def test_await_2(self):
989 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