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