From: Vsevolod Stakhov Date: Sat, 6 Dec 2025 09:02:13 +0000 (+0000) Subject: [Test] Fix Python 3.12+ compatibility in dummy_http.py X-Git-Tag: 3.14.2~19 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8bd2329ab0ecffd10ccc642cc80b8562ed1302e7;p=thirdparty%2Frspamd.git [Test] Fix Python 3.12+ compatibility in dummy_http.py Replace deprecated asyncio.get_event_loop() with asyncio.run() to fix functional test failures on Fedora with newer Python. --- diff --git a/test/functional/util/dummy_http.py b/test/functional/util/dummy_http.py index c1abf7eb86..832dbdc797 100755 --- a/test/functional/util/dummy_http.py +++ b/test/functional/util/dummy_http.py @@ -141,5 +141,4 @@ async def main(): await asyncio.Event().wait() if __name__ == "__main__": - loop = asyncio.get_event_loop() - loop.run_until_complete(main()) + asyncio.run(main())