Skip to content

tests/ui-smote/qtdragon-quit consistently fails on F43 #4169

@BsAtHome

Description

@BsAtHome

The new test for qtdragon-quit fails consistently on Fedora 43. In the logs a message is found:
...SyntaxWarning: 'return' in a 'finally' block.

This is probably the same issue as #4075. Fedora 43 is on python 3.14.5 and may be a bit more critical what it accepts.

Applying the following diff makes the issue go away (like what was done in #4075), but I have no idea whether this is the right fix.

diff --git a/lib/python/qtvcp/qt_action.py b/lib/python/qtvcp/qt_action.py
index 3952200bda..afe02a62b8 100644
--- a/lib/python/qtvcp/qt_action.py
+++ b/lib/python/qtvcp/qt_action.py
@@ -394,7 +394,7 @@ class _Lcnc_Action(object):
                 outfile.close()
             except:
                 pass
-            return npath
+        return npath
 
     def SET_AXIS_ORIGIN(self, axis, value):
         if axis == '' or axis.upper() not in ("XYZABCUVW"):

@grandixximo Please have a look.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions