(self)
| 999 | self.assertEqual(res, [1, 2]) |
| 1000 | |
| 1001 | def test_async_gen_asyncio_02(self): |
| 1002 | async def gen(): |
| 1003 | yield 1 |
| 1004 | await asyncio.sleep(0.01) |
| 1005 | yield 2 |
| 1006 | 1 / 0 |
| 1007 | yield 3 |
| 1008 | |
| 1009 | with self.assertRaises(ZeroDivisionError): |
| 1010 | self.loop.run_until_complete(self.to_list(gen())) |
| 1011 | |
| 1012 | def test_async_gen_asyncio_03(self): |
| 1013 | loop = self.loop |
nothing calls this directly
no test coverage detected