diff options
Diffstat (limited to 'sources/pyside2/tests/mac/qmacstyle_test.py')
-rw-r--r-- | sources/pyside2/tests/mac/qmacstyle_test.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/sources/pyside2/tests/mac/qmacstyle_test.py b/sources/pyside2/tests/mac/qmacstyle_test.py index 8db9fa279..690758fc7 100644 --- a/sources/pyside2/tests/mac/qmacstyle_test.py +++ b/sources/pyside2/tests/mac/qmacstyle_test.py @@ -34,12 +34,14 @@ import unittest from helper import UsesQApplication -QMacStyle = type(QStyleFactory.create('Macintosh')) - class QMacStyleTest(UsesQApplication): + def setUp(self): + UsesQApplication.setUp(self) + self.QMacStyle = type(QStyleFactory.create('Macintosh')) + def testWidgetStyle(self): w = QLabel('Hello') - self.assertTrue(isinstance(w.style(), QMacStyle)) + self.assertTrue(isinstance(w.style(), self.QMacStyle)) if __name__ == '__main__': unittest.main() |