Commit 25530cf9 authored by louiz’'s avatar louiz’

e2e: Switch from coroutines to async, for python3.8

parent f76cd93a
......@@ -108,10 +108,10 @@ class XMPPComponent(slixmpp.BaseXMPP):
if self.biboumi:
def accept_routine(self):
self.accepting_server = yield from self.loop.create_server(lambda: self,
"", 8811, reuse_address=True)
async def accept_routine(self):
self.accepting_server = await self.loop.create_server(lambda: self,
"", 8811, reuse_address=True)
def check_stanza_against_all_expected_xpaths(self):
......@@ -220,13 +220,11 @@ class ProcessRunner:
self.signal_sent = False
self.create = None
def start(self):
self.process = yield from self.create
async def start(self):
self.process = await self.create
def wait(self):
code = yield from self.process.wait()
async def wait(self):
code = await self.process.wait()
return code
def stop(self):
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment