diff options
author | Andrew Lewis <nerf@judo.za.org> | 2023-11-18 02:08:46 +0200 |
---|---|---|
committer | Andrew Lewis <nerf@judo.za.org> | 2023-11-18 02:08:46 +0200 |
commit | 8d30056088484ad7b00ff0664b8814516729dcc3 (patch) | |
tree | ca86a871e094befa838facc92f6d9c112f1326aa /test | |
parent | 66620b534846573efd0222e3d6980b54b5259c20 (diff) | |
download | rspamd-8d30056088484ad7b00ff0664b8814516729dcc3.tar.gz rspamd-8d30056088484ad7b00ff0664b8814516729dcc3.zip |
[Test] Fix dummy http server on python 3.6
Diffstat (limited to 'test')
-rwxr-xr-x | test/functional/util/dummy_http.py | 3 |
1 files changed, 2 insertions, 1 deletions
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()) |