The attached patch shall fix this issue.

The used method is deprecated since 3.12 and was removed in 3.14.
From: Manuel Traut <[email protected]>
Date: Sat, 3 Jan 2026 11:11:19 +0100
Subject: test: Avoid using deprecated asyncio loop retrival

It will not work with python3.14 anymore.

---
 test/__init__.py | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/test/__init__.py b/test/__init__.py
index d4e0635..9ff4a46 100644
--- a/test/__init__.py
+++ b/test/__init__.py
@@ -8,5 +8,10 @@ class BaseTestInject(TestCase):
         inject.clear()
     
     def run_async(self, awaitable):
-        loop = asyncio.get_event_loop()
-        return loop.run_until_complete(awaitable)
\ No newline at end of file
+        loop = asyncio.new_event_loop()
+        asyncio.set_event_loop(loop)
+        try:
+            ret = loop.run_until_complete(awaitable)
+        finally:
+            loop.close()
+        return ret

Reply via email to