diff options
Diffstat (limited to 'sources/pyside6/tests/QtWidgets/qapp_test.py')
-rw-r--r-- | sources/pyside6/tests/QtWidgets/qapp_test.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sources/pyside6/tests/QtWidgets/qapp_test.py b/sources/pyside6/tests/QtWidgets/qapp_test.py index 0455cdb61..dec6034f1 100644 --- a/sources/pyside6/tests/QtWidgets/qapp_test.py +++ b/sources/pyside6/tests/QtWidgets/qapp_test.py @@ -43,12 +43,14 @@ from PySide6.QtWidgets import QApplication class QAppPresence(unittest.TestCase): def testQApp(self): - #QtGui.qApp variable is instance of QApplication + # QtGui.qApp variable is instance of QApplication self.assertTrue(isinstance(qApp, QApplication)) + def main(): app = QApplication([]) unittest.main() + if __name__ == '__main__': main() |