You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While working on .NET 11 support for the OpenTelemetry .NET SDK, which uses this test suite as part of its CI validation, I found that the tests don't work on Python 3.14, which is included in the .NET 11 SDK container images.
======================================================================
ERROR: setUpModule (test)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/runner/work/trace-context/trace-context/test/test.py", line 34, in setUpModule
server = server or TestServer(host = '127.0.0.1', port = 7777, timeout = 3)
~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/runner/work/trace-context/trace-context/test/server.py", line 78, in __init__
self.loop = asyncio.get_event_loop()
~~~~~~~~~~~~~~~~~~~~~~^^
File "/opt/hostedtoolcache/Python/3.14.3/x64/lib/python3.14/asyncio/events.py", line 715, in get_event_loop
raise RuntimeError('There is no current event loop in thread %r.'
% threading.current_thread().name)
RuntimeError: There is no current event loop in thread 'MainThread'.
----------------------------------------------------------------------
Ran 33 tests in 0.057s
I have a patch for this locally that seems to work, so I'll look to push up a fix.
Activity
Disable Python 3.14
SergeyKanzhelev commentedon Mar 16, 2026
yes please. Thank you!
martincostello commentedon Mar 16, 2026
#582
Test multiple Python versions (#580)
Merge branch 'main' into w3cgh-581
Fix tests for Python 3.14 (#582)