projects/aports·blob master · refs

12 lines · 422 B

1diff -rupN a/tests/helpers.py b/tests/helpers.py
2--- a/tests/helpers.py 2024-10-10 22:39:23.000000000 +0000
3+++ b/tests/helpers.py 2026-04-02 23:43:30.320000000 +0000
4@@ -15,7 +15,7 @@ def AsyncMock(*args, **kwargs):
5
6 def _run(coro):
7 """Run the given coroutine."""
8- return asyncio.get_event_loop().run_until_complete(coro)
9+ return asyncio.new_event_loop().run_until_complete(coro)
10
11
12 def make_sync(coro):