diff options
Diffstat (limited to 'sources/pyside2/tests/mac/qmacstyle_test.py')
-rw-r--r-- | sources/pyside2/tests/mac/qmacstyle_test.py | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/sources/pyside2/tests/mac/qmacstyle_test.py b/sources/pyside2/tests/mac/qmacstyle_test.py index 690758fc7..091f9591b 100644 --- a/sources/pyside2/tests/mac/qmacstyle_test.py +++ b/sources/pyside2/tests/mac/qmacstyle_test.py @@ -27,12 +27,19 @@ ############################################################################# # Qt5: this is gone: from PySide2.QtGui import QMacStyle -from PySide2.QtWidgets import QApplication, QLabel, QStyleFactory -from PySide2.QtCore import QObject +import os +import sys import unittest -from helper import UsesQApplication +sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__)))) +from init_paths import init_test_paths +init_test_paths(False) + +from PySide2.QtWidgets import QApplication, QLabel, QStyleFactory +from PySide2.QtCore import QObject + +from helper.usesqapplication import UsesQApplication class QMacStyleTest(UsesQApplication): def setUp(self): |