Commit 6960cef0 authored by Elena Grandi's avatar Elena Grandi
Browse files

Use asyncio.all_tasks() instead of asyncio.Task.all_tasks()

The latter has been deprecated in python 3.7
parent edb980de
......@@ -96,7 +96,7 @@ class Asyncapp(Cliapp):
except asyncio.CancelledError:
log.info("main task canceled")
pending = asyncio.Task.all_tasks()
pending = asyncio.all_tasks()
try:
loop.run_until_complete(asyncio.gather(*pending))
except asyncio.CancelledError:
......
......@@ -100,7 +100,7 @@ class TestManagerMixin(TestCase):
self.manager = None
self.config = None
try:
pending = asyncio.Task.all_tasks()
pending = asyncio.all_tasks(self.loop)
try:
self.loop.run_until_complete(asyncio.gather(*pending))
except asyncio.CancelledError:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment