(self)
| 998 | recorders = self.exception_recorders) |
| 999 | |
| 1000 | def test_async_for(self): |
| 1001 | |
| 1002 | def func(): |
| 1003 | |
| 1004 | async def async_generator(): |
| 1005 | for i in range(1): |
| 1006 | raise ZeroDivisionError |
| 1007 | yield i |
| 1008 | |
| 1009 | async def async_loop(): |
| 1010 | try: |
| 1011 | async for item in async_generator(): |
| 1012 | pass |
| 1013 | except Exception: |
| 1014 | pass |
| 1015 | |
| 1016 | try: |
| 1017 | async_loop().send(None) |
| 1018 | except StopIteration: |
| 1019 | pass |
| 1020 | |
| 1021 | self.check_balanced( |
| 1022 | func, |
| 1023 | recorders = self.exception_recorders) |
| 1024 | |
| 1025 | def test_throw(self): |
| 1026 |
nothing calls this directly
no test coverage detected