Bug 2274106 - python-efel fails to build with pytest 8: IndexError: list index out of range
Summary: python-efel fails to build with pytest 8: IndexError: list index out of range
Keywords:
Status: NEW
Alias: None
Product: Fedora
Classification: Fedora
Component: python-efel
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Ankur Sinha (FranciscoD)
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: 2256331
TreeView+ depends on / blocked
 
Reported: 2024-04-09 07:39 UTC by Tomáš Hrnčiar
Modified: 2024-04-09 07:39 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed:
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Tomáš Hrnčiar 2024-04-09 07:39:02 UTC
python-efel fails to build with pytest 8.

=================================== FAILURES ===================================
__________________ TestCppcore.test_getFeatureDouble_failure ___________________

self = <test_cppcore.TestCppcore object at 0x7f309aed6db0>

    def test_getFeatureDouble_failure(self):  # pylint: disable=R0201
        """cppcore: Testing failure exit code in getFeatureDouble"""
        import efel
        feature_values = list()
        return_value = efel.cppcore.getFeatureDouble(
            "AP_amplitude",
            feature_values)
>       assert return_value == -1
E       assert 9 == -1

tests/test_cppcore.py:111: AssertionError
_________________________ TestCppcore.test_getFeature __________________________

self = <test_cppcore.TestCppcore object at 0x7f309ab19550>

    def test_getFeature(self):
        """cppcore: Testing getFeature"""
        import efel
        self.setup_data()
    
        # get double feature
        feature_values = list()
        efel.cppcore.getFeature('AP_amplitude', feature_values)
>       assert isinstance(feature_values[0], float)
E       IndexError: list index out of range

tests/test_cppcore.py:133: IndexError
=========================== short test summary info ============================
FAILED tests/test_cppcore.py::TestCppcore::test_getFeatureDouble_failure - as...
FAILED tests/test_cppcore.py::TestCppcore::test_getFeature - IndexError: list...
============ 2 failed, 146 passed, 3 xfailed, 136 warnings in 6.37s ============

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/07248032-python-efel/

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

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.


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