Bug 2277972 - python-aiounittest fails to build with pytest 8: RuntimeError: Event loop is closed
Summary: python-aiounittest fails to build with pytest 8: RuntimeError: Event loop is ...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: python-aiounittest
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Fabian Affolter
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: 2256331
TreeView+ depends on / blocked
 
Reported: 2024-04-30 12:35 UTC by Tomáš Hrnčiar
Modified: 2024-09-18 08:05 UTC (History)
3 users (show)

Fixed In Version: python-aiounittest-1.3.1-19.fc42
Clone Of:
Environment:
Last Closed: 2024-09-18 08:05:23 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github kwarunek aiounittest issues 25 0 None open Compatibility with pytest 8 2024-05-22 09:37:46 UTC

Description Tomáš Hrnčiar 2024-04-30 12:35:09 UTC
python-aiounittest fails to build with pytest 8.

=================================== FAILURES ===================================
_______________ TestAsyncCaseWithCustomLoop.test_await_async_add _______________
../../BUILDROOT/python-aiounittest-1.3.1-16.fc41.x86_64/usr/lib/python3.12/site-packages/aiounittest/helpers.py:137: in wrapper
    future = asyncio.ensure_future(ret, loop=loop)
/usr/lib64/python3.12/asyncio/tasks.py:695: in ensure_future
    return loop.create_task(coro_or_future)
/usr/lib64/python3.12/asyncio/base_events.py:456: in create_task
    self._check_closed()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <_UnixSelectorEventLoop running=False closed=True debug=False>

    def _check_closed(self):
        if self._closed:
>           raise RuntimeError('Event loop is closed')
E           RuntimeError: Event loop is closed

/usr/lib64/python3.12/asyncio/base_events.py:541: RuntimeError
=============================== warnings summary ===============================
tests/test_asynctestcase_get_event_loop.py:30
  /builddir/build/BUILD/aiounittest-1.3.1/tests/test_asynctestcase_get_event_loop.py:30: DeprecationWarning: There is no current event loop
    self.my_loop = asyncio.get_event_loop()

-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
=========================== short test summary info ============================
FAILED tests/test_asynctestcase_get_event_loop.py::TestAsyncCaseWithCustomLoop::test_await_async_add
============== 1 failed, 8 passed, 2 xfailed, 1 warning in 0.89s ===============

https://docs.pytest.org/en/stable/changelog.html

For the build logs, see:
https://copr-be.cloud.fedoraproject.org/results/thrnciar/pytest/fedora-rawhide-x86_64/07393315-python-aiounittest/

For all our attempts to build python-aiounittest with pytest 8, see:
https://copr.fedorainfracloud.org/coprs/thrnciar/pytest/package/python-aiounittest/

Let us know here if you have any questions.

Pytest 8 is planned to be included in Fedora 41. And this bugzilla is a
heads up before we merge new pytest into rawhide. For more info see a Fedora Change
proposal https://fedoraproject.org/wiki/Changes/Pytest_8

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 Fedora Update System 2024-09-18 08:01:18 UTC
FEDORA-2024-78ca977062 (python-aiounittest-1.3.1-19.fc42) has been submitted as an update to Fedora 42.
https://bodhi.fedoraproject.org/updates/FEDORA-2024-78ca977062

Comment 2 Fedora Update System 2024-09-18 08:05:23 UTC
FEDORA-2024-78ca977062 (python-aiounittest-1.3.1-19.fc42) has been pushed to the Fedora 42 stable repository.
If problem still persists, please make note of it in this bug report.


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