Description of problem: Package mu fails to build from source in Fedora Rawhide. Version-Release number of selected component (if applicable): 1.2.0-17.fc41 Steps to Reproduce: fedpkg build Additional info: This package is tracked by Koschei. See: https://koschei.fedoraproject.org/package/mu =================================== FAILURES =================================== _____________ test_EditorPane_toggle_comments_handle_crlf_newline ______________ def test_EditorPane_toggle_comments_handle_crlf_newline(): """ Check that stray "\r\n" line endings don't lead to deleting the first character of the following line. """ ep = mu.interface.editor.EditorPane(None, "test\r\nline 2\n") ep.hasSelectedText = mock.MagicMock(return_value=False) ep.toggle_comments() > assert ep.text() == "# test\nline 2\n" E AssertionError: assert 'test\r\nline 2\n' == '# test\nline 2\n' E E - # test E ? -- E + test E ? + E line 2 tests/interface/test_editor.py:940: AssertionError __________________________ test_python_remove_plotter __________________________ def test_python_remove_plotter(): """ Ensure the button states are returned to normal before calling super method. """ editor = mock.MagicMock() view = mock.MagicMock() with mock.patch("builtins.super") as mock_super: pm = PythonMode(editor, view) pm.set_buttons = mock.MagicMock() > mock_super.reset_mock() tests/modes/test_python3.py:489: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib64/python3.13/unittest/mock.py:2232: in reset_mock super().reset_mock(*args, return_value=return_value, **kwargs) /usr/lib64/python3.13/unittest/mock.py:2232: in reset_mock super().reset_mock(*args, return_value=return_value, **kwargs) /usr/lib64/python3.13/unittest/mock.py:2232: in reset_mock super().reset_mock(*args, return_value=return_value, **kwargs) E RecursionError: maximum recursion depth exceeded !!! Recursion detected (same locals & position)
The RecursionError is caused by calling reset_mock() on a mock of super. reset_mock() now calls super() since https://github.com/python/cpython/issues/123934
(In reply to Miro Hrončok from comment #1) > The RecursionError is caused by calling reset_mock() on a mock of super. > > reset_mock() now calls super() since > https://github.com/python/cpython/issues/123934 Fix in https://github.com/mu-editor/mu/pull/2528
The other test is https://github.com/mu-editor/mu/pull/2529
Downstream backports in https://src.fedoraproject.org/rpms/mu/pull-request/28
FEDORA-2024-34067558de (mu-1.2.0-18.fc42) has been submitted as an update to Fedora 42. https://bodhi.fedoraproject.org/updates/FEDORA-2024-34067558de
FEDORA-2024-34067558de (mu-1.2.0-18.fc42) has been pushed to the Fedora 42 stable repository. If problem still persists, please make note of it in this bug report.