Skip to content
Merged
Prev Previous commit
Next Next commit
fix unittest
  • Loading branch information
thehesiod committed Aug 1, 2017
commit f32e94935cf9101c73bcbd90de80cc88125c5c3f
4 changes: 3 additions & 1 deletion Lib/test/test_asyncio/test_tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,9 @@ def __del__(self):
def run():
return Evil()

yield from asyncio.gather(*[asyncio.Task(run()) for _ in range(100)])
self.loop.run_until_complete(
asyncio.gather(*[
self.new_task(self.loop, run()) for _ in range(100)]))

def test_other_loop_future(self):
other_loop = asyncio.new_event_loop()
Expand Down