(self)
| 258 | to_list(gen()) |
| 259 | |
| 260 | def test_async_gen_exception_06(self): |
| 261 | async def gen(): |
| 262 | yield 123 |
| 263 | raise StopIteration |
| 264 | |
| 265 | with self.assertRaisesRegex(RuntimeError, |
| 266 | 'async generator.*StopIteration'): |
| 267 | to_list(gen()) |
| 268 | |
| 269 | def test_async_gen_exception_07(self): |
| 270 | def sync_gen(): |
nothing calls this directly
no test coverage detected