aboutsummaryrefslogtreecommitdiffstats
path: root/sources/pyside2/tests/QtWidgets/bug_1077.py
diff options
context:
space:
mode:
Diffstat (limited to 'sources/pyside2/tests/QtWidgets/bug_1077.py')
-rw-r--r--sources/pyside2/tests/QtWidgets/bug_1077.py11
1 files changed, 10 insertions, 1 deletions
diff --git a/sources/pyside2/tests/QtWidgets/bug_1077.py b/sources/pyside2/tests/QtWidgets/bug_1077.py
index 7943e5550..cb3bf70c4 100644
--- a/sources/pyside2/tests/QtWidgets/bug_1077.py
+++ b/sources/pyside2/tests/QtWidgets/bug_1077.py
@@ -28,9 +28,18 @@
''' unit test for BUG #1077 '''
-from PySide2 import QtCore, QtGui, QtWidgets
+import os
+import sys
import time
+sys.path.append(os.path.join(os.path.dirname(os.path.dirname(os.path.abspath(__file__))), "util"))
+sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
+from init_paths import init_test_paths
+init_test_paths()
+
+from PySide2 import QtCore, QtGui, QtWidgets
+
+
class Highlighter(QtGui.QSyntaxHighlighter):
def __init__(self, parent, mode):
QtGui.QSyntaxHighlighter.__init__(self, parent)