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

Method test_func_14

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

Source from the content-addressed store, hash-verified

758 coro.close()
759
760 def test_func_14(self):
761 @types.coroutine
762 def gen():
763 yield
764 async def coro():
765 try:
766 await gen()
767 except GeneratorExit:
768 await gen()
769 c = coro()
770 c.send(None)
771 with self.assertRaisesRegex(RuntimeError,
772 "coroutine ignored GeneratorExit"):
773 c.close()
774
775 @unittest.expectedFailure # TODO: RUSTPYTHON; StopIteration
776 def test_func_15(self):

Callers

nothing calls this directly

Calls 3

assertRaisesRegexMethod · 0.80
sendMethod · 0.45
closeMethod · 0.45

Tested by

no test coverage detected