From be6dde17f16e85b50361a3db243e9b2e40b2cb5d Mon Sep 17 00:00:00 2001 From: mathieui Date: Mon, 13 Dec 2021 21:25:41 +0100 Subject: Revert "Replace asyncio.ensure_future() with asyncio.create_task()" This reverts commit bac6a4b2bf2fc98401e0de7168c4a5cf31b08b37. This is not actually something we want --- slixmpp/test/slixtest.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'slixmpp/test/slixtest.py') 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() -- cgit v1.2.3