Bug 2273338 - mu fails to build with pytest 8: NameError: name '_' is not defined
Summary: mu fails to build with pytest 8: NameError: name '_' is not defined
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: mu
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Miro Hrončok
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: 2256331
TreeView+ depends on / blocked
 
Reported: 2024-04-04 09:45 UTC by Tomáš Hrnčiar
Modified: 2024-04-10 23:30 UTC (History)
4 users (show)

Fixed In Version: mu-1.2.0-14.fc41
Clone Of:
Environment:
Last Closed: 2024-04-10 23:30:23 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Fedora Package Sources mu pull-request 27 0 None None None 2024-04-10 22:34:37 UTC

Description Tomáš Hrnčiar 2024-04-04 09:45:09 UTC
mu fails to build with pytest 8.

==================================== ERRORS ====================================
_______________ ERROR collecting tests/interface/test_dialogs.py _______________
tests/interface/test_dialogs.py:8: in <module>
    import mu.interface.dialogs
mu/interface/__init__.py:1: in <module>
    from .main import Window
mu/interface/main.py:45: in <module>
    from mu.interface.dialogs import (
mu/interface/dialogs.py:300: in <module>
    class LocaleWidget(QWidget):
mu/interface/dialogs.py:306: in LocaleWidget
    _("Automatically detect"): "",
E   NameError: name '_' is not defined
_______________ ERROR collecting tests/interface/test_editor.py ________________
tests/interface/test_editor.py:6: in <module>
    import mu.interface.editor
mu/interface/__init__.py:1: in <module>
    from .main import Window
mu/interface/main.py:45: in <module>
    from mu.interface.dialogs import (
mu/interface/dialogs.py:300: in <module>
    class LocaleWidget(QWidget):
mu/interface/dialogs.py:306: in LocaleWidget
    _("Automatically detect"): "",
E   NameError: name '_' is not defined
=========================== short test summary info ============================
ERROR tests/interface/test_dialogs.py - NameError: name '_' is not defined
ERROR tests/interface/test_editor.py - NameError: name '_' is not defined
!!!!!!!!!!!!!!!!!!! Interrupted: 2 errors during collection !!!!!!!!!!!!!!!!!!!!
======================= 1 deselected, 2 errors in 1.57s ========================

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/07247616-mu/

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

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 2 Fedora Update System 2024-04-10 23:26:03 UTC
FEDORA-2024-432cfbaaa4 (mu-1.2.0-14.fc41) has been submitted as an update to Fedora 41.
https://bodhi.fedoraproject.org/updates/FEDORA-2024-432cfbaaa4

Comment 3 Fedora Update System 2024-04-10 23:30:23 UTC
FEDORA-2024-432cfbaaa4 (mu-1.2.0-14.fc41) has been pushed to the Fedora 41 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.