(self)
| 177 | return async_gen_result |
| 178 | |
| 179 | def test_async_gen_iteration_01(self): |
| 180 | async def gen(): |
| 181 | await awaitable() |
| 182 | a = yield 123 |
| 183 | self.assertIs(a, None) |
| 184 | await awaitable() |
| 185 | yield 456 |
| 186 | await awaitable() |
| 187 | yield 789 |
| 188 | |
| 189 | self.assertEqual(to_list(gen()), [123, 456, 789]) |
| 190 | |
| 191 | def test_async_gen_iteration_02(self): |
| 192 | async def gen(): |
nothing calls this directly
no test coverage detected