Bug 2165552 - python-txaio fails to build with Python 3.12: RuntimeError: There is no current event loop in thread 'MainThread'.
Summary: python-txaio fails to build with Python 3.12: RuntimeError: There is no curre...
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: python-txaio
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Julien Enselme
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: PYTHON3.12
TreeView+ depends on / blocked
 
Reported: 2023-01-30 12:22 UTC by Tomáš Hrnčiar
Modified: 2023-04-25 12:36 UTC (History)
5 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2023-04-25 12:36:26 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Tomáš Hrnčiar 2023-01-30 12:22:33 UTC
python-txaio fails to build with Python 3.12.0a4.


=================================== FAILURES ===================================
______________________ test_as_future_immediate[asyncio] _______________________

framework = <module 'txaio.aio' from '/builddir/build/BUILDROOT/python-txaio-23.1.1-2.fc38.x86_64/usr/lib/python3.12/site-packages/txaio/aio.py'>

    def test_as_future_immediate(framework):
        '''
        Returning an immediate value from as_future
        '''
        errors = []
        results = []
        calls = []
    
        def method(*args, **kw):
            calls.append((args, kw))
            return 42
>       f = txaio.as_future(method, 1, 2, 3, key='word')

test/test_as_future.py:44: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
../../BUILDROOT/python-txaio-23.1.1-2.fc38.x86_64/usr/lib/python3.12/site-packages/txaio/aio.py:412: in as_future
    return create_future_success(res)
../../BUILDROOT/python-txaio-23.1.1-2.fc38.x86_64/usr/lib/python3.12/site-packages/txaio/aio.py:387: in create_future_success
    return self.create_future(result=result)
../../BUILDROOT/python-txaio-23.1.1-2.fc38.x86_64/usr/lib/python3.12/site-packages/txaio/aio.py:366: in create_future
    f = self._loop.create_future()
../../BUILDROOT/python-txaio-23.1.1-2.fc38.x86_64/usr/lib/python3.12/site-packages/txaio/aio.py:323: in _loop
    return asyncio.get_event_loop()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

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

    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/lib64/python3.12/asyncio/events.py:676: RuntimeError
____________________ test_as_future_immediate_none[asyncio] ____________________

framework = <module 'txaio.aio' from '/builddir/build/BUILDROOT/python-txaio-23.1.1-2.fc38.x86_64/usr/lib/python3.12/site-packages/txaio/aio.py'>

    def test_as_future_immediate_none(framework):
        '''
        Returning None immediately from as_future
        '''
        errors = []
        results = []
        calls = []
    
        def method(*args, **kw):
            calls.append((args, kw))
            return None
>       f = txaio.as_future(method, 1, 2, 3, key='word')

test/test_as_future.py:73: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
../../BUILDROOT/python-txaio-23.1.1-2.fc38.x86_64/usr/lib/python3.12/site-packages/txaio/aio.py:412: in as_future
    return create_future_success(res)
../../BUILDROOT/python-txaio-23.1.1-2.fc38.x86_64/usr/lib/python3.12/site-packages/txaio/aio.py:387: in create_future_success
    return self.create_future(result=result)
../../BUILDROOT/python-txaio-23.1.1-2.fc38.x86_64/usr/lib/python3.12/site-packages/txaio/aio.py:366: in create_future
    f = self._loop.create_future()
../../BUILDROOT/python-txaio-23.1.1-2.fc38.x86_64/usr/lib/python3.12/site-packages/txaio/aio.py:323: in _loop
    return asyncio.get_event_loop()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

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

    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/lib64/python3.12/asyncio/events.py:676: RuntimeError
______________________ test_as_future_exception[asyncio] _______________________

self = <txaio.aio._AsyncioApi object at 0x7f40e662af60>
fun = <function test_as_future_exception.<locals>.method at 0x7f40e56662a0>
args = (1, 2, 3), kwargs = {'key': 'word'}

    def as_future(self, fun, *args, **kwargs):
        try:
>           res = fun(*args, **kwargs)

../../BUILDROOT/python-txaio-23.1.1-2.fc38.x86_64/usr/lib/python3.12/site-packages/txaio/aio.py:396: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

args = (1, 2, 3), kw = {'key': 'word'}

    def method(*args, **kw):
        calls.append((args, kw))
>       raise exception
E       RuntimeError: sadness

test/test_as_future.py:143: RuntimeError

During handling of the above exception, another exception occurred:

framework = <module 'txaio.aio' from '/builddir/build/BUILDROOT/python-txaio-23.1.1-2.fc38.x86_64/usr/lib/python3.12/site-packages/txaio/aio.py'>

    def test_as_future_exception(framework):
        '''
        Raises an exception from as_future
        '''
        errors = []
        results = []
        calls = []
        exception = RuntimeError("sadness")
    
        def method(*args, **kw):
            calls.append((args, kw))
            raise exception
>       f = txaio.as_future(method, 1, 2, 3, key='word')

test/test_as_future.py:144: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
../../BUILDROOT/python-txaio-23.1.1-2.fc38.x86_64/usr/lib/python3.12/site-packages/txaio/aio.py:398: in as_future
    return create_future_error(create_failure())
../../BUILDROOT/python-txaio-23.1.1-2.fc38.x86_64/usr/lib/python3.12/site-packages/txaio/aio.py:390: in create_future_error
    f = self.create_future()
../../BUILDROOT/python-txaio-23.1.1-2.fc38.x86_64/usr/lib/python3.12/site-packages/txaio/aio.py:366: in create_future
    f = self._loop.create_future()
../../BUILDROOT/python-txaio-23.1.1-2.fc38.x86_64/usr/lib/python3.12/site-packages/txaio/aio.py:323: in _loop
    return asyncio.get_event_loop()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

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

    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/lib64/python3.12/asyncio/events.py:676: RuntimeError
______________________ test_as_future_recursive[asyncio] _______________________

framework = <module 'txaio.aio' from '/builddir/build/BUILDROOT/python-txaio-23.1.1-2.fc38.x86_64/usr/lib/python3.12/site-packages/txaio/aio.py'>

    def test_as_future_recursive(framework):
        '''
        Returns another Future from as_future
        '''
        errors = []
        results = []
        calls = []
>       f1 = txaio.create_future_success(42)

test/test_as_future.py:169: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
../../BUILDROOT/python-txaio-23.1.1-2.fc38.x86_64/usr/lib/python3.12/site-packages/txaio/aio.py:387: in create_future_success
    return self.create_future(result=result)
../../BUILDROOT/python-txaio-23.1.1-2.fc38.x86_64/usr/lib/python3.12/site-packages/txaio/aio.py:366: in create_future
    f = self._loop.create_future()
../../BUILDROOT/python-txaio-23.1.1-2.fc38.x86_64/usr/lib/python3.12/site-packages/txaio/aio.py:323: in _loop
    return asyncio.get_event_loop()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

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

    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/lib64/python3.12/asyncio/events.py:676: RuntimeError
__________________ test_create_future_explicit_loop[asyncio] ___________________

framework = <module 'txaio.aio' from '/builddir/build/BUILDROOT/python-txaio-23.1.1-2.fc38.x86_64/usr/lib/python3.12/site-packages/txaio/aio.py'>

    def test_create_future_explicit_loop(framework):
        """
        process events on alternate loop= for create_future later
        """
        pytest.importorskip('asyncio')
        if txaio.using_twisted:
            pytest.skip()
    
        import asyncio
    
        alt_loop = asyncio.new_event_loop()
    
        txa = txaio.with_config(loop=alt_loop)
        f = txa.create_future()
    
        results = []
        f.add_done_callback(lambda r: results.append(r.result()))
    
        assert results == []
        txaio.resolve(f, 'some result')
    
        # run_once() runs the txaio.config.loop so we shouldn't get any
        # results until we spin alt_loop
        assert results == []
>       run_once()

test/test_call_later.py:99: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
test/util.py:52: in run_once
    return _run_once(txaio.config.loop or asyncio.get_event_loop())
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

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

    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/lib64/python3.12/asyncio/events.py:676: RuntimeError
______________ test_create_future_success_explicit_loop[asyncio] _______________

framework = <module 'txaio.aio' from '/builddir/build/BUILDROOT/python-txaio-23.1.1-2.fc38.x86_64/usr/lib/python3.12/site-packages/txaio/aio.py'>

    def test_create_future_success_explicit_loop(framework):
        """
        process events on alternate loop= for create_future later
        """
        pytest.importorskip('asyncio')
        if txaio.using_twisted:
            pytest.skip()
    
        import asyncio
        alt_loop = asyncio.new_event_loop()
        txa = txaio.with_config(loop=alt_loop)
    
        f = txa.create_future_success('some result')
    
        results = []
        f.add_done_callback(lambda r: results.append(r.result()))
    
        # run_once() runs the txaio.config.loop so we shouldn't get any
        # results until we spin alt_loop
        assert results == []
>       run_once()

test/test_call_later.py:126: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
test/util.py:52: in run_once
    return _run_once(txaio.config.loop or asyncio.get_event_loop())
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

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

    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/lib64/python3.12/asyncio/events.py:676: RuntimeError
______________ test_create_future_failure_explicit_loop[asyncio] _______________

framework = <module 'txaio.aio' from '/builddir/build/BUILDROOT/python-txaio-23.1.1-2.fc38.x86_64/usr/lib/python3.12/site-packages/txaio/aio.py'>

    def test_create_future_failure_explicit_loop(framework):
        """
        process events on alternate loop= for create_future later
        """
        pytest.importorskip('asyncio')
        if txaio.using_twisted:
            pytest.skip()
    
        import asyncio
        alt_loop = asyncio.new_event_loop()
        the_exception = Exception('bad')
        txa = txaio.with_config(loop=alt_loop)
        f = txa.create_future_error(the_exception)
    
        results = []
    
        def boom(r):
            try:
                results.append(r.result())
            except Exception as e:
                results.append(e)
        f.add_done_callback(boom)
    
        # run_once() runs the txaio.config.loop so we shouldn't get any
        # results until we spin alt_loop
        assert results == []
>       run_once()

test/test_call_later.py:159: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
test/util.py:52: in run_once
    return _run_once(txaio.config.loop or asyncio.get_event_loop())
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

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

    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/lib64/python3.12/asyncio/events.py:676: RuntimeError
________________________ test_default_resolve[asyncio] _________________________

framework = <module 'txaio.aio' from '/builddir/build/BUILDROOT/python-txaio-23.1.1-2.fc38.x86_64/usr/lib/python3.12/site-packages/txaio/aio.py'>

    def test_default_resolve(framework):
>       f = txaio.create_future()

test/test_callback.py:33: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
../../BUILDROOT/python-txaio-23.1.1-2.fc38.x86_64/usr/lib/python3.12/site-packages/txaio/aio.py:366: in create_future
    f = self._loop.create_future()
../../BUILDROOT/python-txaio-23.1.1-2.fc38.x86_64/usr/lib/python3.12/site-packages/txaio/aio.py:323: in _loop
    return asyncio.get_event_loop()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

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

    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/lib64/python3.12/asyncio/events.py:676: RuntimeError
____________________________ test_callback[asyncio] ____________________________

framework = <module 'txaio.aio' from '/builddir/build/BUILDROOT/python-txaio-23.1.1-2.fc38.x86_64/usr/lib/python3.12/site-packages/txaio/aio.py'>

    def test_callback(framework):
>       f = txaio.create_future()

test/test_callback.py:48: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
../../BUILDROOT/python-txaio-23.1.1-2.fc38.x86_64/usr/lib/python3.12/site-packages/txaio/aio.py:366: in create_future
    f = self._loop.create_future()
../../BUILDROOT/python-txaio-23.1.1-2.fc38.x86_64/usr/lib/python3.12/site-packages/txaio/aio.py:323: in _loop
    return asyncio.get_event_loop()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

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

    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/lib64/python3.12/asyncio/events.py:676: RuntimeError
________________________ test_immediate_result[asyncio] ________________________

framework = <module 'txaio.aio' from '/builddir/build/BUILDROOT/python-txaio-23.1.1-2.fc38.x86_64/usr/lib/python3.12/site-packages/txaio/aio.py'>

    def test_immediate_result(framework):
>       f = txaio.create_future_success("it worked")

test/test_callback.py:63: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
../../BUILDROOT/python-txaio-23.1.1-2.fc38.x86_64/usr/lib/python3.12/site-packages/txaio/aio.py:387: in create_future_success
    return self.create_future(result=result)
../../BUILDROOT/python-txaio-23.1.1-2.fc38.x86_64/usr/lib/python3.12/site-packages/txaio/aio.py:366: in create_future
    f = self._loop.create_future()
../../BUILDROOT/python-txaio-23.1.1-2.fc38.x86_64/usr/lib/python3.12/site-packages/txaio/aio.py:323: in _loop
    return asyncio.get_event_loop()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

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

    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/lib64/python3.12/asyncio/events.py:676: RuntimeError
_____________________________ test_cancel[asyncio] _____________________________

framework = <module 'txaio.aio' from '/builddir/build/BUILDROOT/python-txaio-23.1.1-2.fc38.x86_64/usr/lib/python3.12/site-packages/txaio/aio.py'>

    def test_cancel(framework):
        cancels = []
    
        def it_died(f):
            cancels.append(f)
    
>       f = txaio.create_future(canceller=it_died)

test/test_cancel.py:38: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
../../BUILDROOT/python-txaio-23.1.1-2.fc38.x86_64/usr/lib/python3.12/site-packages/txaio/aio.py:366: in create_future
    f = self._loop.create_future()
../../BUILDROOT/python-txaio-23.1.1-2.fc38.x86_64/usr/lib/python3.12/site-packages/txaio/aio.py:323: in _loop
    return asyncio.get_event_loop()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

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

    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/lib64/python3.12/asyncio/events.py:676: RuntimeError
_________________________ test_create_result[asyncio] __________________________

framework = <module 'txaio.aio' from '/builddir/build/BUILDROOT/python-txaio-23.1.1-2.fc38.x86_64/usr/lib/python3.12/site-packages/txaio/aio.py'>

    def test_create_result(framework):
>       f = txaio.create_future(result='foo')

test/test_create.py:13: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
../../BUILDROOT/python-txaio-23.1.1-2.fc38.x86_64/usr/lib/python3.12/site-packages/txaio/aio.py:366: in create_future
    f = self._loop.create_future()
../../BUILDROOT/python-txaio-23.1.1-2.fc38.x86_64/usr/lib/python3.12/site-packages/txaio/aio.py:323: in _loop
    return asyncio.get_event_loop()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

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

    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/lib64/python3.12/asyncio/events.py:676: RuntimeError
__________________________ test_create_error[asyncio] __________________________

framework = <module 'txaio.aio' from '/builddir/build/BUILDROOT/python-txaio-23.1.1-2.fc38.x86_64/usr/lib/python3.12/site-packages/txaio/aio.py'>

    def test_create_error(framework):
>       f = txaio.create_future(error=RuntimeError("test"))

test/test_create.py:21: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
../../BUILDROOT/python-txaio-23.1.1-2.fc38.x86_64/usr/lib/python3.12/site-packages/txaio/aio.py:366: in create_future
    f = self._loop.create_future()
../../BUILDROOT/python-txaio-23.1.1-2.fc38.x86_64/usr/lib/python3.12/site-packages/txaio/aio.py:323: in _loop
    return asyncio.get_event_loop()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

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

    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/lib64/python3.12/asyncio/events.py:676: RuntimeError
____________________________ test_errback[asyncio] _____________________________

framework = <module 'txaio.aio' from '/builddir/build/BUILDROOT/python-txaio-23.1.1-2.fc38.x86_64/usr/lib/python3.12/site-packages/txaio/aio.py'>

    def test_errback(framework):
>       f = txaio.create_future()

test/test_errback.py:34: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
../../BUILDROOT/python-txaio-23.1.1-2.fc38.x86_64/usr/lib/python3.12/site-packages/txaio/aio.py:366: in create_future
    f = self._loop.create_future()
../../BUILDROOT/python-txaio-23.1.1-2.fc38.x86_64/usr/lib/python3.12/site-packages/txaio/aio.py:323: in _loop
    return asyncio.get_event_loop()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

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

    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/lib64/python3.12/asyncio/events.py:676: RuntimeError
_____________________ test_errback_without_except[asyncio] _____________________

framework = <module 'txaio.aio' from '/builddir/build/BUILDROOT/python-txaio-23.1.1-2.fc38.x86_64/usr/lib/python3.12/site-packages/txaio/aio.py'>

    def test_errback_without_except(framework):
        '''
        Create a failure without an except block
        '''
>       f = txaio.create_future()

test/test_errback.py:66: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
../../BUILDROOT/python-txaio-23.1.1-2.fc38.x86_64/usr/lib/python3.12/site-packages/txaio/aio.py:366: in create_future
    f = self._loop.create_future()
../../BUILDROOT/python-txaio-23.1.1-2.fc38.x86_64/usr/lib/python3.12/site-packages/txaio/aio.py:323: in _loop
    return asyncio.get_event_loop()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

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

    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/lib64/python3.12/asyncio/events.py:676: RuntimeError
____________________ test_errback_plain_exception[asyncio] _____________________

framework = <module 'txaio.aio' from '/builddir/build/BUILDROOT/python-txaio-23.1.1-2.fc38.x86_64/usr/lib/python3.12/site-packages/txaio/aio.py'>

    def test_errback_plain_exception(framework):
        '''
        reject a future with just an Exception
        '''
>       f = txaio.create_future()

test/test_errback.py:92: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
../../BUILDROOT/python-txaio-23.1.1-2.fc38.x86_64/usr/lib/python3.12/site-packages/txaio/aio.py:366: in create_future
    f = self._loop.create_future()
../../BUILDROOT/python-txaio-23.1.1-2.fc38.x86_64/usr/lib/python3.12/site-packages/txaio/aio.py:323: in _loop
    return asyncio.get_event_loop()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

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

    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/lib64/python3.12/asyncio/events.py:676: RuntimeError
____________________ test_errback_cancel_exception[asyncio] ____________________

framework = <module 'txaio.aio' from '/builddir/build/BUILDROOT/python-txaio-23.1.1-2.fc38.x86_64/usr/lib/python3.12/site-packages/txaio/aio.py'>

    def test_errback_cancel_exception(framework):
        '''
        reject a future with a CancelledError
        '''
>       f = txaio.create_future()

test/test_errback.py:117: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
../../BUILDROOT/python-txaio-23.1.1-2.fc38.x86_64/usr/lib/python3.12/site-packages/txaio/aio.py:366: in create_future
    f = self._loop.create_future()
../../BUILDROOT/python-txaio-23.1.1-2.fc38.x86_64/usr/lib/python3.12/site-packages/txaio/aio.py:323: in _loop
    return asyncio.get_event_loop()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

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

    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/lib64/python3.12/asyncio/events.py:676: RuntimeError
______________________ test_errback_illegal_args[asyncio] ______________________

framework = <module 'txaio.aio' from '/builddir/build/BUILDROOT/python-txaio-23.1.1-2.fc38.x86_64/usr/lib/python3.12/site-packages/txaio/aio.py'>

    def test_errback_illegal_args(framework):
        '''
        non-Exception/Failures should be rejected
        '''
>       f = txaio.create_future()

test/test_errback.py:143: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
../../BUILDROOT/python-txaio-23.1.1-2.fc38.x86_64/usr/lib/python3.12/site-packages/txaio/aio.py:366: in create_future
    f = self._loop.create_future()
../../BUILDROOT/python-txaio-23.1.1-2.fc38.x86_64/usr/lib/python3.12/site-packages/txaio/aio.py:323: in _loop
    return asyncio.get_event_loop()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

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

    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/lib64/python3.12/asyncio/events.py:676: RuntimeError
_____________________ test_errback_reject_no_args[asyncio] _____________________

framework = <module 'txaio.aio' from '/builddir/build/BUILDROOT/python-txaio-23.1.1-2.fc38.x86_64/usr/lib/python3.12/site-packages/txaio/aio.py'>

    def test_errback_reject_no_args(framework):
        """
        txaio.reject() with no args
        """
    
>       f = txaio.create_future()

test/test_errback.py:156: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
../../BUILDROOT/python-txaio-23.1.1-2.fc38.x86_64/usr/lib/python3.12/site-packages/txaio/aio.py:366: in create_future
    f = self._loop.create_future()
../../BUILDROOT/python-txaio-23.1.1-2.fc38.x86_64/usr/lib/python3.12/site-packages/txaio/aio.py:323: in _loop
    return asyncio.get_event_loop()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

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

    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/lib64/python3.12/asyncio/events.py:676: RuntimeError
_______________________ test_immediate_failure[asyncio] ________________________

framework = <module 'txaio.aio' from '/builddir/build/BUILDROOT/python-txaio-23.1.1-2.fc38.x86_64/usr/lib/python3.12/site-packages/txaio/aio.py'>

    def test_immediate_failure(framework):
        exception = RuntimeError("it failed")
        try:
>           raise exception
E           RuntimeError: it failed

test/test_errback.py:184: RuntimeError

During handling of the above exception, another exception occurred:

framework = <module 'txaio.aio' from '/builddir/build/BUILDROOT/python-txaio-23.1.1-2.fc38.x86_64/usr/lib/python3.12/site-packages/txaio/aio.py'>

    def test_immediate_failure(framework):
        exception = RuntimeError("it failed")
        try:
            raise exception
        except RuntimeError:
>           f0 = txaio.create_future_error()

test/test_errback.py:186: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
../../BUILDROOT/python-txaio-23.1.1-2.fc38.x86_64/usr/lib/python3.12/site-packages/txaio/aio.py:390: in create_future_error
    f = self.create_future()
../../BUILDROOT/python-txaio-23.1.1-2.fc38.x86_64/usr/lib/python3.12/site-packages/txaio/aio.py:366: in create_future
    f = self._loop.create_future()
../../BUILDROOT/python-txaio-23.1.1-2.fc38.x86_64/usr/lib/python3.12/site-packages/txaio/aio.py:323: in _loop
    return asyncio.get_event_loop()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

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

    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/lib64/python3.12/asyncio/events.py:676: RuntimeError
___________________________ test_gather_two[asyncio] ___________________________

framework = <module 'txaio.aio' from '/builddir/build/BUILDROOT/python-txaio-23.1.1-2.fc38.x86_64/usr/lib/python3.12/site-packages/txaio/aio.py'>

    def test_gather_two(framework):
        '''
        Wait for two Futures.
        '''
    
        errors = []
        results = []
        calls = []
    
        def foo():
            def codependant(*args, **kw):
                calls.append((args, kw))
                return 42
            return txaio.as_future(codependant)
    
        def method(*args, **kw):
            calls.append((args, kw))
            return "OHAI"
>       f0 = txaio.as_future(method, 1, 2, 3, key='word')

test/test_gather.py:50: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
../../BUILDROOT/python-txaio-23.1.1-2.fc38.x86_64/usr/lib/python3.12/site-packages/txaio/aio.py:412: in as_future
    return create_future_success(res)
../../BUILDROOT/python-txaio-23.1.1-2.fc38.x86_64/usr/lib/python3.12/site-packages/txaio/aio.py:387: in create_future_success
    return self.create_future(result=result)
../../BUILDROOT/python-txaio-23.1.1-2.fc38.x86_64/usr/lib/python3.12/site-packages/txaio/aio.py:366: in create_future
    f = self._loop.create_future()
../../BUILDROOT/python-txaio-23.1.1-2.fc38.x86_64/usr/lib/python3.12/site-packages/txaio/aio.py:323: in _loop
    return asyncio.get_event_loop()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

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

    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/lib64/python3.12/asyncio/events.py:676: RuntimeError
_______________________ test_gather_no_consume[asyncio] ________________________

framework = <module 'txaio.aio' from '/builddir/build/BUILDROOT/python-txaio-23.1.1-2.fc38.x86_64/usr/lib/python3.12/site-packages/txaio/aio.py'>

    def test_gather_no_consume(framework):
        '''
        consume_exceptions=False
        '''
    
        errors = []
        results = []
        calls = []
    
>       f0 = txaio.create_future_error(error=RuntimeError("f0 failed"))

test/test_gather.py:83: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
../../BUILDROOT/python-txaio-23.1.1-2.fc38.x86_64/usr/lib/python3.12/site-packages/txaio/aio.py:390: in create_future_error
    f = self.create_future()
../../BUILDROOT/python-txaio-23.1.1-2.fc38.x86_64/usr/lib/python3.12/site-packages/txaio/aio.py:366: in create_future
    f = self._loop.create_future()
../../BUILDROOT/python-txaio-23.1.1-2.fc38.x86_64/usr/lib/python3.12/site-packages/txaio/aio.py:323: in _loop
    return asyncio.get_event_loop()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

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

    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/lib64/python3.12/asyncio/events.py:676: RuntimeError
_______________________ test_is_future_generic[asyncio] ________________________

framework = <module 'txaio.aio' from '/builddir/build/BUILDROOT/python-txaio-23.1.1-2.fc38.x86_64/usr/lib/python3.12/site-packages/txaio/aio.py'>

    def test_is_future_generic(framework):
        '''
        Returning an immediate value from as_future
        '''
>       f = txaio.create_future('result')

test/test_is_future.py:35: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
../../BUILDROOT/python-txaio-23.1.1-2.fc38.x86_64/usr/lib/python3.12/site-packages/txaio/aio.py:366: in create_future
    f = self._loop.create_future()
../../BUILDROOT/python-txaio-23.1.1-2.fc38.x86_64/usr/lib/python3.12/site-packages/txaio/aio.py:323: in _loop
    return asyncio.get_event_loop()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

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

    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/lib64/python3.12/asyncio/events.py:676: RuntimeError
___________________________ test_is_called[asyncio] ____________________________

framework = <module 'txaio.aio' from '/builddir/build/BUILDROOT/python-txaio-23.1.1-2.fc38.x86_64/usr/lib/python3.12/site-packages/txaio/aio.py'>

    def test_is_called(framework):
>       f = txaio.create_future_success(None)

test/test_is_future.py:58: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
../../BUILDROOT/python-txaio-23.1.1-2.fc38.x86_64/usr/lib/python3.12/site-packages/txaio/aio.py:387: in create_future_success
    return self.create_future(result=result)
../../BUILDROOT/python-txaio-23.1.1-2.fc38.x86_64/usr/lib/python3.12/site-packages/txaio/aio.py:366: in create_future
    f = self._loop.create_future()
../../BUILDROOT/python-txaio-23.1.1-2.fc38.x86_64/usr/lib/python3.12/site-packages/txaio/aio.py:323: in _loop
    return asyncio.get_event_loop()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

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

    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/lib64/python3.12/asyncio/events.py:676: RuntimeError
=========================== short test summary info ============================
FAILED test/test_as_future.py::test_as_future_immediate[asyncio] - RuntimeErr...
FAILED test/test_as_future.py::test_as_future_immediate_none[asyncio] - Runti...
FAILED test/test_as_future.py::test_as_future_exception[asyncio] - RuntimeErr...
FAILED test/test_as_future.py::test_as_future_recursive[asyncio] - RuntimeErr...
FAILED test/test_call_later.py::test_create_future_explicit_loop[asyncio] - R...
FAILED test/test_call_later.py::test_create_future_success_explicit_loop[asyncio]
FAILED test/test_call_later.py::test_create_future_failure_explicit_loop[asyncio]
FAILED test/test_callback.py::test_default_resolve[asyncio] - RuntimeError: T...
FAILED test/test_callback.py::test_callback[asyncio] - RuntimeError: There is...
FAILED test/test_callback.py::test_immediate_result[asyncio] - RuntimeError: ...
FAILED test/test_cancel.py::test_cancel[asyncio] - RuntimeError: There is no ...
FAILED test/test_create.py::test_create_result[asyncio] - RuntimeError: There...
FAILED test/test_create.py::test_create_error[asyncio] - RuntimeError: There ...
FAILED test/test_errback.py::test_errback[asyncio] - RuntimeError: There is n...
FAILED test/test_errback.py::test_errback_without_except[asyncio] - RuntimeEr...
FAILED test/test_errback.py::test_errback_plain_exception[asyncio] - RuntimeE...
FAILED test/test_errback.py::test_errback_cancel_exception[asyncio] - Runtime...
FAILED test/test_errback.py::test_errback_illegal_args[asyncio] - RuntimeErro...
FAILED test/test_errback.py::test_errback_reject_no_args[asyncio] - RuntimeEr...
FAILED test/test_errback.py::test_immediate_failure[asyncio] - RuntimeError: ...
FAILED test/test_gather.py::test_gather_two[asyncio] - RuntimeError: There is...
FAILED test/test_gather.py::test_gather_no_consume[asyncio] - RuntimeError: T...
FAILED test/test_is_future.py::test_is_future_generic[asyncio] - RuntimeError...
FAILED test/test_is_future.py::test_is_called[asyncio] - RuntimeError: There ...
================== 24 failed, 24 passed, 70 skipped in 0.55s ===================

The get_event_loop() method of the default event loop policy now emits a
DeprecationWarning if there is no current event loop set and it decides to
create one. (Contributed by Serhiy Storchaka and Guido van Rossum in
gh-100160.)

asyncio.get_event_loop() and many other asyncio
functions like ensure_future(), shield() or gather(), and also the
get_event_loop() method of BaseDefaultEventLoopPolicy now raise a RuntimeError
if called when there is no running event loop and the current event loop was
not set. Previously they implicitly created and set a new current event loop.
DeprecationWarning is no longer emitted if there is no running event loop but
the current event loop is set in the policy. (Contributed by Serhiy Storchaka
in gh-93453.)

https://github.com/python/cpython/issues/100160
https://github.com/python/cpython/issues/93453

https://docs.python.org/3.12/whatsnew/3.12.html

For the build logs, see:
https://copr-be.cloud.fedoraproject.org/results/@python/python3.12/fedora-rawhide-x86_64/05277503-python-txaio/

For all our attempts to build python-txaio with Python 3.12, see:
https://copr.fedorainfracloud.org/coprs/g/python/python3.12/package/python-txaio/

Testing and mass rebuild of packages is happening in copr. You can follow these instructions to test locally in mock if your package builds with Python 3.12:
https://copr.fedorainfracloud.org/coprs/g/python/python3.12/

Let us know here if you have any questions.

Python 3.12 is planned to be included in Fedora 39. To make that update smoother, we're building Fedora packages with all pre-releases of Python 3.12.
A build failure prevents us from testing all dependent packages (transitive [Build]Requires), so if this package is required a lot, it's important for us to get it fixed soon.
We'd appreciate help from the people who know this package best, but if you don't want to work on this now, let us know so we can try to work around it on our side.

Comment 1 Ben Cotton 2023-02-07 15:07:08 UTC
This bug appears to have been reported against 'rawhide' during the Fedora Linux 38 development cycle.
Changing version to 38.

Comment 2 Julien Enselme 2023-04-25 11:53:33 UTC
If I look to https://copr.fedorainfracloud.org/coprs/g/python/python3.12/package/python-txaio/, it seems the package now builds. Can we close this?

Comment 3 Miro Hrončok 2023-04-25 12:36:26 UTC
Yes, thanks.


Note You need to log in before you can comment on or make changes to this bug.