Bug 2279960 - python-niapy fails to build with pytest 8: KeyError: 'runtest'
Summary: python-niapy fails to build with pytest 8: KeyError: 'runtest'
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: python-niapy
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Iztok Fister Jr.
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: 2256331
TreeView+ depends on / blocked
 
Reported: 2024-05-10 07:39 UTC by Tomáš Hrnčiar
Modified: 2024-05-29 04:26 UTC (History)
6 users (show)

Fixed In Version: python-niapy-2.3.1-1.fc40 python-niapy-2.3.1-1.fc39
Clone Of:
Environment:
Last Closed: 2024-05-29 03:35:31 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github NiaOrg NiaPy issues 510 0 None open Test collection fails with KeyError 'runtest' for test_algorithm.py with pytest 8.2.0 2024-05-14 20:56:46 UTC

Description Tomáš Hrnčiar 2024-05-10 07:39:42 UTC
python-niapy fails to build with pytest 8.

==================================== ERRORS ====================================
___________________ ERROR collecting tests/test_algorithm.py ___________________
niapy/task.py:79: in __init__
    self.problem = get_problem(problem, **params)
niapy/util/factory.py:19: in get_problem
    problem = _problem_options().pop(name.lower())
E   KeyError: 'runtest'
=========================== short test summary info ============================
ERROR tests/test_algorithm.py::TestingTask - KeyError: 'runtest'
!!!!!!!!!!!!!!!!!!!! Interrupted: 1 error during collection !!!!!!!!!!!!!!!!!!!!
=============================== 1 error in 1.56s ===============================

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/07389232-python-niapy/

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

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 Sandro 2024-05-14 20:56:46 UTC
Reported upstream. Possible workaround, should upstream not provide a fix, is ignoring the troublesome test with `--ignore tests/test_algorithm.py`.

Comment 2 Fedora Update System 2024-05-20 07:03:33 UTC
FEDORA-2024-0c89538d1c (python-niapy-2.3.1-1.fc39) has been submitted as an update to Fedora 39.
https://bodhi.fedoraproject.org/updates/FEDORA-2024-0c89538d1c

Comment 3 Fedora Update System 2024-05-20 07:03:35 UTC
FEDORA-2024-8448e22382 (python-niapy-2.3.1-1.fc40) has been submitted as an update to Fedora 40.
https://bodhi.fedoraproject.org/updates/FEDORA-2024-8448e22382

Comment 4 Fedora Update System 2024-05-21 02:21:25 UTC
FEDORA-2024-8448e22382 has been pushed to the Fedora 40 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2024-8448e22382`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2024-8448e22382

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 5 Fedora Update System 2024-05-21 03:04:44 UTC
FEDORA-2024-0c89538d1c has been pushed to the Fedora 39 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2024-0c89538d1c`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2024-0c89538d1c

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 6 Fedora Update System 2024-05-29 03:35:31 UTC
FEDORA-2024-8448e22382 (python-niapy-2.3.1-1.fc40) has been pushed to the Fedora 40 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 7 Fedora Update System 2024-05-29 04:26:39 UTC
FEDORA-2024-0c89538d1c (python-niapy-2.3.1-1.fc39) has been pushed to the Fedora 39 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.