(self)
| 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): |
nothing calls this directly
no test coverage detected