Description: Port to python 3.14
 In Python 3.14, get_event_loop() no longer create a new event loop
 when there is none. Thus we modify the code to create a new event loop
 if there is RuntimeError.
Author: Ying-Chun Liu (PaulLiu) <paulliu@debian.org>
Bug-Debian: https://bugs.debian.org/1123277
Last-Update: 2025-12-25
Index: python-openleadr-python-0.5.34+dfsg.1/test/test_reports.py
===================================================================
--- python-openleadr-python-0.5.34+dfsg.1.orig/test/test_reports.py
+++ python-openleadr-python-0.5.34+dfsg.1/test/test_reports.py
@@ -10,7 +10,11 @@ import time
 
 from openleadr.messaging import create_message
 
-loop = asyncio.get_event_loop()
+try:
+    loop = asyncio.get_event_loop()
+except RuntimeError:
+    loop = asyncio.new_event_loop()
+    asyncio.set_event_loop(loop)
 loop.set_debug(True)
 
 enable_default_logging()
