(self)
| 218 | self.fail('StopAsyncIteration was not raised') |
| 219 | |
| 220 | def test_async_gen_exception_03(self): |
| 221 | async def gen(): |
| 222 | await awaitable() |
| 223 | yield 123 |
| 224 | await awaitable(throw=True) |
| 225 | yield 456 |
| 226 | |
| 227 | with self.assertRaises(AwaitException): |
| 228 | to_list(gen()) |
| 229 | |
| 230 | def test_async_gen_exception_04(self): |
| 231 | async def gen(): |
nothing calls this directly
no test coverage detected