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

Method test_func_12

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

Source from the content-addressed store, hash-verified

737 coro.close() # avoid RuntimeWarning
738
739 def test_func_12(self):
740 async def g():
741 me.send(None)
742 await foo
743 me = g()
744 with self.assertRaisesRegex(ValueError,
745 "coroutine already executing"):
746 me.send(None)
747
748 def test_func_13(self):
749 async def g():

Callers

nothing calls this directly

Calls 3

assertRaisesRegexMethod · 0.80
gFunction · 0.70
sendMethod · 0.45

Tested by

no test coverage detected