diff options
author | mathieui <mathieui@mathieui.net> | 2021-12-13 21:25:41 +0100 |
---|---|---|
committer | mathieui <mathieui@mathieui.net> | 2021-12-13 21:25:41 +0100 |
commit | be6dde17f16e85b50361a3db243e9b2e40b2cb5d (patch) | |
tree | 35b9f3cf15303684e821641cb1adf0ed72464296 /slixmpp/test/slixtest.py | |
parent | 14ae84d6661e7966125e0e6853074818bf83ec05 (diff) | |
download | slixmpp-be6dde17f16e85b50361a3db243e9b2e40b2cb5d.tar.gz slixmpp-be6dde17f16e85b50361a3db243e9b2e40b2cb5d.tar.bz2 slixmpp-be6dde17f16e85b50361a3db243e9b2e40b2cb5d.tar.xz slixmpp-be6dde17f16e85b50361a3db243e9b2e40b2cb5d.zip |
Revert "Replace asyncio.ensure_future() with asyncio.create_task()"
This reverts commit bac6a4b2bf2fc98401e0de7168c4a5cf31b08b37.
This is not actually something we want
Diffstat (limited to 'slixmpp/test/slixtest.py')
-rw-r--r-- | slixmpp/test/slixtest.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/slixmpp/test/slixtest.py b/slixmpp/test/slixtest.py index 1c7f12fa..0d05a4ac 100644 --- a/slixmpp/test/slixtest.py +++ b/slixmpp/test/slixtest.py @@ -622,7 +622,7 @@ class SlixTest(unittest.TestCase): def wait_for_send_queue(self): loop = asyncio.get_event_loop() - future = asyncio.create_task(self.xmpp.run_filters(), loop=loop) + future = asyncio.ensure_future(self.xmpp.run_filters(), loop=loop) queue = self.xmpp.waiting_queue loop.run_until_complete(queue.join()) future.cancel() |