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