mirror of
https://github.com/GNS3/gns3-server.git
synced 2026-11-21 13:45:13 +02:00
Drop Python 3.4 and switch to async / await syntax for asyncio. Fixes #1425
This commit is contained in:
1 parent
8baa480b79
commit
76af98404a
119 files changed
+2432
-3084
No files matched your search
@@ -284,10 +284,10 @@ def test_json_serial_link(async_run, project, compute, link):
|
||||
|
||||
|
||||
def test_start_streaming_pcap(link, async_run, tmpdir, project):
|
||||
@asyncio.coroutine
|
||||
def fake_reader():
|
||||
|
||||
async def fake_reader():
|
||||
output = AsyncioBytesIO()
|
||||
yield from output.write(b"hello")
|
||||
await output.write(b"hello")
|
||||
output.seek(0)
|
||||
return output
|
||||
|
||||
@@ -314,8 +314,8 @@ def test_default_capture_file_name(project, compute, async_run):
|
||||
|
||||
|
||||
def test_start_capture(link, async_run, tmpdir, project, controller):
|
||||
@asyncio.coroutine
|
||||
def fake_reader():
|
||||
|
||||
async def fake_reader():
|
||||
return AsyncioBytesIO()
|
||||
|
||||
link.read_pcap_from_source = fake_reader
|
||||
|
||||
Reference in new issue
Block a user