diff options
Diffstat (limited to 'sources/pyside6/tests/QtWidgets/bug_711.py')
-rw-r--r-- | sources/pyside6/tests/QtWidgets/bug_711.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sources/pyside6/tests/QtWidgets/bug_711.py b/sources/pyside6/tests/QtWidgets/bug_711.py index e78fe85b6..9f6217379 100644 --- a/sources/pyside6/tests/QtWidgets/bug_711.py +++ b/sources/pyside6/tests/QtWidgets/bug_711.py @@ -38,6 +38,7 @@ init_test_paths(False) from PySide6.QtGui import QAction from PySide6.QtWidgets import QToolBar, QApplication, QToolButton + class TestLabelPixmap(unittest.TestCase): def testReference(self): toolbar = QToolBar() @@ -51,6 +52,7 @@ class TestLabelPixmap(unittest.TestCase): for b in buttons: self.assertRaises(RuntimeError, b.objectName) + if __name__ == '__main__': app = QApplication([]) unittest.main() |