aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorAndrew Lewis <nerf@judo.za.org>2023-11-18 02:08:46 +0200
committerAndrew Lewis <nerf@judo.za.org>2023-11-18 02:08:46 +0200
commit8d30056088484ad7b00ff0664b8814516729dcc3 (patch)
treeca86a871e094befa838facc92f6d9c112f1326aa /test
parent66620b534846573efd0222e3d6980b54b5259c20 (diff)
downloadrspamd-8d30056088484ad7b00ff0664b8814516729dcc3.tar.gz
rspamd-8d30056088484ad7b00ff0664b8814516729dcc3.zip
[Test] Fix dummy http server on python 3.6
Diffstat (limited to 'test')
-rwxr-xr-xtest/functional/util/dummy_http.py3
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())