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

Method test_func_14

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

Source from the content-addressed store, hash-verified

755 coro.close()
756
757 def test_func_14(self):
758 @types.coroutine
759 def gen():
760 yield
761 async def coro():
762 try:
763 await gen()
764 except GeneratorExit:
765 await gen()
766 c = coro()
767 c.send(None)
768 with self.assertRaisesRegex(RuntimeError,
769 "coroutine ignored GeneratorExit"):
770 c.close()
771
772 def test_func_15(self):
773 # See http://bugs.python.org/issue25887 for details

Callers

nothing calls this directly

Calls 3

assertRaisesRegexMethod · 0.80
sendMethod · 0.45
closeMethod · 0.45

Tested by

no test coverage detected