See upstream PR: https://github.com/Lucretiel/autocommand/pull/40 Fix tests for Python 3.14+ ; asyncio.get_event_loop() now raises when there is no event loop. diff --git a/test/test_autoasync.py b/test/test_autoasync.py index 02a820a..c98923e 100644 --- test/test_autoasync.py.orig +++ test/test_autoasync.py @@ -32,7 +32,10 @@ def temporary_context_loop(loop): Set the given loop as the context loop (that is, the loop returned by asyncio.get_event_loop() for the duration of the context) ''' - old_loop = asyncio.get_event_loop() + try: + old_loop = asyncio.get_event_loop() + except RuntimeError: + old_loop = None asyncio.set_event_loop(loop) try: yield loop