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")