summaryrefslogtreecommitdiff
path: root/tests/end_to_end
diff options
context:
space:
mode:
authorlouiz’ <louiz@louiz.org>2020-05-05 21:09:38 +0200
committerlouiz’ <louiz@louiz.org>2020-05-09 14:41:03 +0200
commit25530cf9eeb7863ad1745a2d518fdddb1ffa1491 (patch)
tree8a4968287fe51aec9d42b6f011288f84e2264fcd /tests/end_to_end
parentf76cd93aff1610c9b4c720a73f6d585e8008dfd1 (diff)
downloadbiboumi-25530cf9eeb7863ad1745a2d518fdddb1ffa1491.tar.gz
biboumi-25530cf9eeb7863ad1745a2d518fdddb1ffa1491.tar.bz2
biboumi-25530cf9eeb7863ad1745a2d518fdddb1ffa1491.tar.xz
biboumi-25530cf9eeb7863ad1745a2d518fdddb1ffa1491.zip
e2e: Switch from coroutines to async, for python3.8
Diffstat (limited to 'tests/end_to_end')
-rw-r--r--tests/end_to_end/__main__.py18
1 files changed, 8 insertions, 10 deletions
diff --git a/tests/end_to_end/__main__.py b/tests/end_to_end/__main__.py
index a029bea..b5d56fc 100644
--- a/tests/end_to_end/__main__.py
+++ b/tests/end_to_end/__main__.py
@@ -108,10 +108,10 @@ class XMPPComponent(slixmpp.BaseXMPP):
if self.biboumi:
self.biboumi.stop()
- @asyncio.coroutine
- def accept_routine(self):
- self.accepting_server = yield from self.loop.create_server(lambda: self,
- "127.0.0.1", 8811, reuse_address=True)
+
+ async def accept_routine(self):
+ self.accepting_server = await self.loop.create_server(lambda: self,
+ "127.0.0.1", 8811, reuse_address=True)
def check_stanza_against_all_expected_xpaths(self):
pass
@@ -220,13 +220,11 @@ class ProcessRunner:
self.signal_sent = False
self.create = None
- @asyncio.coroutine
- def start(self):
- self.process = yield from self.create
+ async def start(self):
+ self.process = await self.create
- @asyncio.coroutine
- def wait(self):
- code = yield from self.process.wait()
+ async def wait(self):
+ code = await self.process.wait()
return code
def stop(self):