(self)
| 987 | return res |
| 988 | |
| 989 | def test_async_gen_asyncio_01(self): |
| 990 | async def gen(): |
| 991 | yield 1 |
| 992 | await asyncio.sleep(0.01) |
| 993 | yield 2 |
| 994 | await asyncio.sleep(0.01) |
| 995 | return |
| 996 | yield 3 |
| 997 | |
| 998 | res = self.loop.run_until_complete(self.to_list(gen())) |
| 999 | self.assertEqual(res, [1, 2]) |
| 1000 | |
| 1001 | def test_async_gen_asyncio_02(self): |
| 1002 | async def gen(): |
nothing calls this directly
no test coverage detected