Skip to content

py 3.14 support #191

@mdavidsaver

Description

@mdavidsaver

The CI jobs using make and py3.x have switched to py3.14, and are failing with:

ERROR: p4p.test.test_asyncio (nose2.loader.ModuleImportFailure.p4p.test.test_asyncio)
----------------------------------------------------------------------
ImportError: Failed to import test module: p4p.test.test_asyncio
Traceback (most recent call last):
  File "/opt/hostedtoolcache/Python/3.14.0/x64/lib/python3.14/site-packages/nose2/plugins/loader/discovery.py", line 195, in _find_tests_in_file
    module = util.module_from_name(module_name)
  File "/opt/hostedtoolcache/Python/3.14.0/x64/lib/python3.14/site-packages/nose2/util.py", line 73, in module_from_name
    __import__(name)
    ~~~~~~~~~~^^^^^^
  File "/home/runner/work/p4p/p4p/python3.14/linux-x86_64/p4p/test/test_asyncio.py", line 10, in <module>
    from .asynciotest import *
  File "/home/runner/work/p4p/p4p/python3.14/linux-x86_64/p4p/test/asynciotest.py", line 26, in <module>
    asyncio.get_event_loop().close()
    ~~~~~~~~~~~~~~~~~~~~~~^^
  File "/opt/hostedtoolcache/Python/3.14.0/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'.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions