Bug 2274106

Summary: python-efel fails to build with pytest 8: IndexError: list index out of range
Product: [Fedora] Fedora Reporter: Tomáš Hrnčiar <thrnciar>
Component: python-efelAssignee: Ankur Sinha (FranciscoD) <sanjay.ankur>
Status: NEW --- QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: mhroncok, neuro-sig, sanjay.ankur, thrnciar
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 2256331    

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.