From: Andrew Lewis Date: Sat, 18 Nov 2023 00:08:46 +0000 (+0200) Subject: [Test] Fix dummy http server on python 3.6 X-Git-Tag: 3.8.0~60^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=refs%2Fpull%2F4710%2Fhead;p=rspamd.git [Test] Fix dummy http server on python 3.6 --- diff --git a/test/functional/util/dummy_http.py b/test/functional/util/dummy_http.py index 832dbdc79..c1abf7eb8 100755 --- a/test/functional/util/dummy_http.py +++ b/test/functional/util/dummy_http.py @@ -141,4 +141,5 @@ async def main(): await asyncio.Event().wait() if __name__ == "__main__": - asyncio.run(main()) + loop = asyncio.get_event_loop() + loop.run_until_complete(main())