Tests: Specify QtWidgets.QDialogButtonBox.Close explicitly

This seems needed for PySide6 on my system.
This commit is contained in:
Jookia
2024-06-19 23:19:23 +10:00
committed by Chris Hennes
parent b35c292140
commit b44b6f182d

View File

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