diff options
Diffstat (limited to 'sources/pyside6/tests/QtWidgets/qlabel_test.py')
-rw-r--r-- | sources/pyside6/tests/QtWidgets/qlabel_test.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sources/pyside6/tests/QtWidgets/qlabel_test.py b/sources/pyside6/tests/QtWidgets/qlabel_test.py index 15618eec7..b8bbb2902 100644 --- a/sources/pyside6/tests/QtWidgets/qlabel_test.py +++ b/sources/pyside6/tests/QtWidgets/qlabel_test.py @@ -43,6 +43,7 @@ from shiboken6 import Shiboken from helper.usesqapplication import UsesQApplication + class QLabelTest(UsesQApplication): '''Test case for calling QLabel.setPixmap''' @@ -62,7 +63,6 @@ class QLabelTest(UsesQApplication): self.label.setPixmap(p1) self.assertIsNotNone(self.label.pixmap()) - # PYSIDE-150: # When a new QPixmap is assigned to a QLabel, # the previous one needs to be cleared. @@ -85,5 +85,6 @@ class QLabelTest(UsesQApplication): self.assertTrue(all(Shiboken.getCppPointer(o) != ret_p_addr for o in Shiboken.getAllValidWrappers())) + if __name__ == '__main__': unittest.main() |