aboutsummaryrefslogtreecommitdiffstats
path: root/sources/pyside6/tests/QtUiTools/bug_392.py
diff options
context:
space:
mode:
Diffstat (limited to 'sources/pyside6/tests/QtUiTools/bug_392.py')
-rw-r--r--sources/pyside6/tests/QtUiTools/bug_392.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/sources/pyside6/tests/QtUiTools/bug_392.py b/sources/pyside6/tests/QtUiTools/bug_392.py
index eb351dedc..0211ad3ba 100644
--- a/sources/pyside6/tests/QtUiTools/bug_392.py
+++ b/sources/pyside6/tests/QtUiTools/bug_392.py
@@ -41,6 +41,7 @@ from PySide6.QtGui import QAction
from PySide6.QtWidgets import QComboBox, QWidget
from PySide6.QtUiTools import QUiLoader
+
class MyWidget(QComboBox):
def __init__(self, parent=None):
QComboBox.__init__(self, parent)
@@ -48,6 +49,7 @@ class MyWidget(QComboBox):
def isPython(self):
return True
+
class BugTest(UsesQApplication):
def testCase(self):
w = QWidget()
@@ -80,6 +82,7 @@ class BugTest(UsesQApplication):
self.assertTrue(isinstance(result.custom2, MyWidget))
self.assertTrue(result.custom.isPython())
+
if __name__ == '__main__':
unittest.main()