Tests: Specify QtWidgets.QDialogButtonBox.Close explicitly
This seems needed for PySide6 on my system.
This commit is contained in:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user