(self)
| 135 | self.assertEqual('my new message', cm.exception.args[0]) |
| 136 | |
| 137 | def test_task_del_collect(self): |
| 138 | class Evil: |
| 139 | def __del__(self): |
| 140 | gc.collect() |
| 141 | |
| 142 | async def run(): |
| 143 | return Evil() |
| 144 | |
| 145 | self.loop.run_until_complete( |
| 146 | asyncio.gather(*[ |
| 147 | self.new_task(self.loop, run()) for _ in range(100) |
| 148 | ])) |
| 149 | |
| 150 | def test_other_loop_future(self): |
| 151 | other_loop = asyncio.new_event_loop() |
nothing calls this directly
no test coverage detected