mirror of
https://github.com/GNS3/gns3-server.git
synced 2026-11-23 22:34:35 +02:00
Replace asyncio.async() by asyncio.ensure_future() in tests. Ref #2566.
This commit is contained in:
1 parent
089d25c79d
commit
a3d1e865a8
19 files changed
+171
-171
No files matched your search
+1
-1
@@ -314,7 +314,7 @@ def async_run(loop):
|
||||
"""
|
||||
Shortcut for running in asyncio loop
|
||||
"""
|
||||
return lambda x: loop.run_until_complete(asyncio.async(x))
|
||||
return lambda x: loop.run_until_complete(asyncio.ensure_future(x))
|
||||
|
||||
|
||||
@pytest.yield_fixture
|
||||
|
||||
Reference in new issue
Block a user