summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorlouiz’ <louiz@louiz.org>2016-10-21 01:05:15 +0200
committerlouiz’ <louiz@louiz.org>2016-10-21 01:05:15 +0200
commita4d67ce041f50e0d25e2b47d04cc25bdad86a048 (patch)
tree8d59c40d45e66ca9e64c1b0e16bf037cb2da3a82 /tests
parent4388b9c31122f98c4291f8fba5a0d3524902b8d7 (diff)
downloadbiboumi-a4d67ce041f50e0d25e2b47d04cc25bdad86a048.tar.gz
biboumi-a4d67ce041f50e0d25e2b47d04cc25bdad86a048.tar.bz2
biboumi-a4d67ce041f50e0d25e2b47d04cc25bdad86a048.tar.xz
biboumi-a4d67ce041f50e0d25e2b47d04cc25bdad86a048.zip
Use ensure_future instead of async
Diffstat (limited to 'tests')
-rw-r--r--tests/end_to_end/__main__.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/end_to_end/__main__.py b/tests/end_to_end/__main__.py
index 56d7a6d..4a42820 100644
--- a/tests/end_to_end/__main__.py
+++ b/tests/end_to_end/__main__.py
@@ -57,7 +57,7 @@ class XMPPComponent(slixmpp.BaseXMPP):
self.add_event_handler("session_end", self.on_end_session)
- asyncio.async(self.accept_routine())
+ asyncio.ensure_future(self.accept_routine())
self.scenario = scenario
self.biboumi = biboumi