Skip to content

Tests and Python 3.14 #220

@fabaff

Description

@fabaff

Multiple tests are failing on Python 3.14

============================= test session starts ==============================
platform linux -- Python 3.14.3, pytest-9.0.2, pluggy-1.6.0
rootdir: /build/source
configfile: pyproject.toml
collected 66 items / 8 deselected / 58 selected                                

aiomultiprocess/tests/perf.py s                                          [  1%]
aiomultiprocess/tests/scheduler.py ..                                    [  5%]
aiomultiprocess/tests/__init__.py FFFFFFFFFFFFFFFFFsF.FFFFFFF..          [ 55%]
aiomultiprocess/tests/pool.py F.FFFFFFF                                  [ 70%]
aiomultiprocess/tests/core.py FFFFFFFFFFFFFFFFF                          [100%]

=================================== FAILURES ===================================
_______________________ CoreTest.test_async_initializer ________________________
aiomultiprocess/tests/base.py:59: in wrapper
    loop = asyncio.get_event_loop()
           ^^^^^^^^^^^^^^^^^^^^^^^^
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <asyncio.unix_events._UnixDefaultEventLoopPolicy object at 0x7ffff5785550>

    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'.

/nix/store/cgk2ykijyaadc1687r0w4psf8pi1fdyc-python3-3.14.3/lib/python3.14/asyncio/events.py:715: RuntimeError
__________________________ CoreTest.test_initializer ___________________________
aiomultiprocess/tests/base.py:59: in wrapper
    loop = asyncio.get_event_loop()
           ^^^^^^^^^^^^^^^^^^^^^^^^
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <asyncio.unix_events._UnixDefaultEventLoopPolicy object at 0x7ffff5785550>
[...]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions