From ca3bcfe6dadcd880abffbb0d6bee8d161bc1aac6 Mon Sep 17 00:00:00 2001 From: Jookia Date: Wed, 19 Jun 2024 23:19:23 +1000 Subject: [PATCH] Tests: Specify QtWidgets.QDialogButtonBox.Close explicitly This seems needed for PySide6 on my system. --- src/Mod/Part/TestPartGui.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Mod/Part/TestPartGui.py b/src/Mod/Part/TestPartGui.py index dc207cc831..3efaedfd54 100644 --- a/src/Mod/Part/TestPartGui.py +++ b/src/Mod/Part/TestPartGui.py @@ -96,7 +96,7 @@ class SectionCutTestCases(unittest.TestCase): dw = findDockWidget("Section Cutting") if dw: box = dw.findChild(QtWidgets.QDialogButtonBox) - button = box.button(box.Close) + button = box.button(QtWidgets.QDialogButtonBox.Close) button.click() else: print ("No Section Cutting panel found")