(self)
| 727 | aw.throw(ZeroDivisionError, ZeroDivisionError(), None) |
| 728 | |
| 729 | def test_func_11(self): |
| 730 | async def func(): pass |
| 731 | coro = func() |
| 732 | # Test that PyCoro_Type and _PyCoroWrapper_Type types were properly |
| 733 | # initialized |
| 734 | self.assertIn('__await__', dir(coro)) |
| 735 | self.assertIn('__iter__', dir(coro.__await__())) |
| 736 | self.assertIn('coroutine_wrapper', repr(coro.__await__())) |
| 737 | coro.close() # avoid RuntimeWarning |
| 738 | |
| 739 | def test_func_12(self): |
| 740 | async def g(): |