-
Notifications
You must be signed in to change notification settings - Fork 67
Open
Description
There were some changes to asyncio in python 3.14, that causes tests to fail:
============================= test session starts ==============================
platform linux -- Python 3.14.2, pytest-8.4.2, pluggy-1.6.0
rootdir: /build/python-eliot/src/eliot-1.17.5
plugins: hypothesis-6.150.0
collected 326 items
eliot/tests/test_api.py .......... [ 3%]
eliot/tests/test_coroutines.py F
=================================== FAILURES ===================================
____________ CoroutineTests.test_await_inherits_coroutine_contexts _____________
self = <eliot.tests.test_coroutines.CoroutineTests testMethod=test_await_inherits_coroutine_contexts>
logger = <eliot._output.MemoryLogger object at 0x7e69297d5c80>
@capture_logging(None)
def test_await_inherits_coroutine_contexts(self, logger):
"""
awaited coroutines inherit the logging context.
"""
> run_coroutines(calling_coro)
eliot/tests/test_coroutines.py:74:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
eliot/tests/test_coroutines.py:37: in run_coroutines
loop = asyncio.get_event_loop()
^^^^^^^^^^^^^^^^^^^^^^^^
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <asyncio.unix_events._UnixDefaultEventLoopPolicy object at 0x7e692a23e7b0>
def get_event_loop(self):
"""Get the event loop for the current context.
Returns an instance of EventLoop or raises an exception.
"""
if self._local._loop is None:
> raise RuntimeError('There is no current event loop in thread %r.'
% threading.current_thread().name)
E RuntimeError: There is no current event loop in thread 'MainThread'.
/usr/lib/python3.14/asyncio/events.py:715: RuntimeError
=========================== short test summary info ============================
FAILED eliot/tests/test_coroutines.py::CoroutineTests::test_await_inherits_coroutine_contexts
!!!!!!!!!!!!!!!!!!!!!!!!!! stopping after 1 failures !!!!!!!!!!!!!!!!!!!!!!!!!!!
=================== 1 failed, 10 passed, 3 warnings in 0.61s ===================
related python issue: python/cpython#126353
Metadata
Metadata
Assignees
Labels
No labels