aboutsummaryrefslogtreecommitdiffstats
path: root/sources/pyside6/tests/QtUiTools/bug_958.py
diff options
context:
space:
mode:
Diffstat (limited to 'sources/pyside6/tests/QtUiTools/bug_958.py')
-rw-r--r--sources/pyside6/tests/QtUiTools/bug_958.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/sources/pyside6/tests/QtUiTools/bug_958.py b/sources/pyside6/tests/QtUiTools/bug_958.py
index 2ef9b4331..74c4a18ea 100644
--- a/sources/pyside6/tests/QtUiTools/bug_958.py
+++ b/sources/pyside6/tests/QtUiTools/bug_958.py
@@ -49,15 +49,17 @@ class Gui_Qt(QMainWindow):
# this used to cause a segfault because the old inject code used to destroy the parent layout
file = Path(__file__).resolve().parent / 'bug_958.ui'
assert(file.is_file())
- self._cw = lLoader.load(os.fspath(file), self)
+ self._cw = lLoader.load(os.fspath(file), self)
self.setCentralWidget(self._cw)
+
class BugTest(TimedQApplication):
def testCase(self):
lMain = Gui_Qt()
lMain.show()
self.app.exec_()
+
if __name__ == "__main__":
unittest.main()