aboutsummaryrefslogtreecommitdiffstats
path: root/sources/pyside2/tests/QtGui
diff options
context:
space:
mode:
Diffstat (limited to 'sources/pyside2/tests/QtGui')
-rw-r--r--sources/pyside2/tests/QtGui/bug_1091.py7
-rw-r--r--sources/pyside2/tests/QtGui/bug_300_test.py10
-rw-r--r--sources/pyside2/tests/QtGui/bug_367.py4
-rw-r--r--sources/pyside2/tests/QtGui/bug_480.py6
-rw-r--r--sources/pyside2/tests/QtGui/bug_606.py6
-rw-r--r--sources/pyside2/tests/QtGui/bug_617.py10
-rw-r--r--sources/pyside2/tests/QtGui/bug_652.py9
-rw-r--r--sources/pyside2/tests/QtGui/bug_660.py4
-rw-r--r--sources/pyside2/tests/QtGui/bug_716.py8
-rw-r--r--sources/pyside2/tests/QtGui/bug_740.py4
-rw-r--r--sources/pyside2/tests/QtGui/bug_743.py6
-rw-r--r--sources/pyside2/tests/QtGui/bug_991.py7
-rw-r--r--sources/pyside2/tests/QtGui/bug_PYSIDE-344.py6
-rw-r--r--sources/pyside2/tests/QtGui/bug_PYSIDE-41.py6
-rw-r--r--sources/pyside2/tests/QtGui/deepcopy_test.py8
-rw-r--r--sources/pyside2/tests/QtGui/float_to_int_implicit_conversion_test.py4
-rw-r--r--sources/pyside2/tests/QtGui/pyside_reload_test.py4
-rw-r--r--sources/pyside2/tests/QtGui/qcolor_reduce_test.py9
-rw-r--r--sources/pyside2/tests/QtGui/qcolor_test.py10
-rw-r--r--sources/pyside2/tests/QtGui/qcursor_test.py4
-rw-r--r--sources/pyside2/tests/QtGui/qdatastream_gui_operators_test.py4
-rw-r--r--sources/pyside2/tests/QtGui/qdesktopservices_test.py6
-rw-r--r--sources/pyside2/tests/QtGui/qfontmetrics_test.py4
-rw-r--r--sources/pyside2/tests/QtGui/qguiapplication_test.py6
-rw-r--r--sources/pyside2/tests/QtGui/qicon_test.py4
-rw-r--r--sources/pyside2/tests/QtGui/qitemselection_test.py4
-rw-r--r--sources/pyside2/tests/QtGui/qkeysequence_test.py4
-rw-r--r--sources/pyside2/tests/QtGui/qmatrix_test.py6
-rw-r--r--sources/pyside2/tests/QtGui/qopenglbuffer_test.py4
-rw-r--r--sources/pyside2/tests/QtGui/qopenglwindow_test.py4
-rw-r--r--sources/pyside2/tests/QtGui/qpainter_test.py6
-rw-r--r--sources/pyside2/tests/QtGui/qpdfwriter_test.py4
-rw-r--r--sources/pyside2/tests/QtGui/qpixelformat_test.py4
-rw-r--r--sources/pyside2/tests/QtGui/qpixmap_test.py4
-rw-r--r--sources/pyside2/tests/QtGui/qpixmapcache_test.py4
-rw-r--r--sources/pyside2/tests/QtGui/qpolygonf_test.py7
-rw-r--r--sources/pyside2/tests/QtGui/qradialgradient_test.py6
-rw-r--r--sources/pyside2/tests/QtGui/qrasterwindow_test.py4
-rw-r--r--sources/pyside2/tests/QtGui/qregion_test.py4
-rw-r--r--sources/pyside2/tests/QtGui/qstylehints_test.py4
-rw-r--r--sources/pyside2/tests/QtGui/qtextdocument_functions.py6
-rw-r--r--sources/pyside2/tests/QtGui/qtextdocument_undoredo_test.py6
-rw-r--r--sources/pyside2/tests/QtGui/qtextdocumentwriter_test.py4
-rw-r--r--sources/pyside2/tests/QtGui/qtextline_test.py4
-rw-r--r--sources/pyside2/tests/QtGui/qtransform_test.py7
-rw-r--r--sources/pyside2/tests/QtGui/repr_test.py6
-rw-r--r--sources/pyside2/tests/QtGui/timed_app_and_patching_test.py4
47 files changed, 232 insertions, 30 deletions
diff --git a/sources/pyside2/tests/QtGui/bug_1091.py b/sources/pyside2/tests/QtGui/bug_1091.py
index 28f7d9bea..74c0000ac 100644
--- a/sources/pyside2/tests/QtGui/bug_1091.py
+++ b/sources/pyside2/tests/QtGui/bug_1091.py
@@ -28,7 +28,14 @@
''' unit test for BUG #1091 '''
+import os
+import sys
import unittest
+
+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 import QtGui
class QPainterTestCase(unittest.TestCase):
diff --git a/sources/pyside2/tests/QtGui/bug_300_test.py b/sources/pyside2/tests/QtGui/bug_300_test.py
index c2c1bc9cb..d5da0a418 100644
--- a/sources/pyside2/tests/QtGui/bug_300_test.py
+++ b/sources/pyside2/tests/QtGui/bug_300_test.py
@@ -26,9 +26,17 @@
##
#############################################################################
-from PySide2.QtCore import QModelIndex, QStringListModel
+import os
+import sys
import unittest
+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.QtCore import QModelIndex, QStringListModel
+
+
class TestQAbstractItemModelSignals(unittest.TestCase):
def sigCallback(self, index, r, c):
self._called = True
diff --git a/sources/pyside2/tests/QtGui/bug_367.py b/sources/pyside2/tests/QtGui/bug_367.py
index 2780df5c9..5080295bf 100644
--- a/sources/pyside2/tests/QtGui/bug_367.py
+++ b/sources/pyside2/tests/QtGui/bug_367.py
@@ -32,7 +32,9 @@ import os
import sys
import unittest
-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(False)
from helper.usesqapplication import UsesQApplication
from PySide2 import QtCore,QtGui
diff --git a/sources/pyside2/tests/QtGui/bug_480.py b/sources/pyside2/tests/QtGui/bug_480.py
index 506dbf53a..41b83e10d 100644
--- a/sources/pyside2/tests/QtGui/bug_480.py
+++ b/sources/pyside2/tests/QtGui/bug_480.py
@@ -26,8 +26,14 @@
##
#############################################################################
+import os
+import sys
import unittest
+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 import QtWidgets
class BuggyWidget(QtWidgets.QWidget):
diff --git a/sources/pyside2/tests/QtGui/bug_606.py b/sources/pyside2/tests/QtGui/bug_606.py
index 6f01b5797..4f2a4b46e 100644
--- a/sources/pyside2/tests/QtGui/bug_606.py
+++ b/sources/pyside2/tests/QtGui/bug_606.py
@@ -26,8 +26,14 @@
##
#############################################################################
+import os
+import sys
import unittest
+sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
+from init_paths import init_test_paths
+init_test_paths(False)
+
import PySide2
from PySide2.QtGui import QVector2D, QVector3D, QVector4D
from PySide2.QtGui import QColor
diff --git a/sources/pyside2/tests/QtGui/bug_617.py b/sources/pyside2/tests/QtGui/bug_617.py
index 370d6469f..32e1fc05e 100644
--- a/sources/pyside2/tests/QtGui/bug_617.py
+++ b/sources/pyside2/tests/QtGui/bug_617.py
@@ -26,9 +26,17 @@
##
#############################################################################
+import os
+import sys
+import unittest
+
+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.QtCore import QEvent
from PySide2.QtGui import QColor
-import unittest
+
class MyEvent(QEvent):
def __init__(self):
diff --git a/sources/pyside2/tests/QtGui/bug_652.py b/sources/pyside2/tests/QtGui/bug_652.py
index 92b2d5a82..c80709f98 100644
--- a/sources/pyside2/tests/QtGui/bug_652.py
+++ b/sources/pyside2/tests/QtGui/bug_652.py
@@ -26,7 +26,14 @@
##
#############################################################################
+import os
+import sys
import unittest
+
+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.QtGui import *
class MyData(QTextBlockUserData):
@@ -55,4 +62,4 @@ class TestBug652(unittest.TestCase):
self.assertEqual(blk.userData().getMyNiceData(), heyHo)
if __name__ == "__main__":
- unittest.main() \ No newline at end of file
+ unittest.main()
diff --git a/sources/pyside2/tests/QtGui/bug_660.py b/sources/pyside2/tests/QtGui/bug_660.py
index f2a50fd3c..058364d1d 100644
--- a/sources/pyside2/tests/QtGui/bug_660.py
+++ b/sources/pyside2/tests/QtGui/bug_660.py
@@ -30,7 +30,9 @@ import os
import sys
import unittest
-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(False)
import py3kcompat as py3k
from PySide2.QtGui import QStandardItemModel, QStandardItem
diff --git a/sources/pyside2/tests/QtGui/bug_716.py b/sources/pyside2/tests/QtGui/bug_716.py
index f29739490..d68b11d0e 100644
--- a/sources/pyside2/tests/QtGui/bug_716.py
+++ b/sources/pyside2/tests/QtGui/bug_716.py
@@ -26,6 +26,14 @@
##
#############################################################################
+import os
+import sys
+
+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.QtCore import Qt, QPersistentModelIndex, QStringListModel
if __name__ == '__main__':
diff --git a/sources/pyside2/tests/QtGui/bug_740.py b/sources/pyside2/tests/QtGui/bug_740.py
index bfd9a03fe..a4db6e5a8 100644
--- a/sources/pyside2/tests/QtGui/bug_740.py
+++ b/sources/pyside2/tests/QtGui/bug_740.py
@@ -30,7 +30,9 @@ import os
import sys
import unittest
-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(False)
import py3kcompat as py3k
from helper.usesqapplication import UsesQApplication
diff --git a/sources/pyside2/tests/QtGui/bug_743.py b/sources/pyside2/tests/QtGui/bug_743.py
index 75933ae21..2ad0a0612 100644
--- a/sources/pyside2/tests/QtGui/bug_743.py
+++ b/sources/pyside2/tests/QtGui/bug_743.py
@@ -26,8 +26,14 @@
##
#############################################################################
+import os
+import sys
import unittest
+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.QtGui import QMatrix4x4
class TestQMatrix(unittest.TestCase):
diff --git a/sources/pyside2/tests/QtGui/bug_991.py b/sources/pyside2/tests/QtGui/bug_991.py
index 43af0832a..1af304a27 100644
--- a/sources/pyside2/tests/QtGui/bug_991.py
+++ b/sources/pyside2/tests/QtGui/bug_991.py
@@ -26,7 +26,14 @@
##
#############################################################################
+import os
+import sys
import unittest
+
+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.QtCore import QObject
from PySide2.QtGui import QPen, QBrush
diff --git a/sources/pyside2/tests/QtGui/bug_PYSIDE-344.py b/sources/pyside2/tests/QtGui/bug_PYSIDE-344.py
index 0946d70ed..f050008a7 100644
--- a/sources/pyside2/tests/QtGui/bug_PYSIDE-344.py
+++ b/sources/pyside2/tests/QtGui/bug_PYSIDE-344.py
@@ -30,8 +30,14 @@
'''Test cases for PYSIDE-344, imul/idiv are used instead of mul/div, modifying the argument passed in'''
+import os
+import sys
import unittest
+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.QtCore import *
from PySide2.QtGui import *
diff --git a/sources/pyside2/tests/QtGui/bug_PYSIDE-41.py b/sources/pyside2/tests/QtGui/bug_PYSIDE-41.py
index 128a6574b..15967a512 100644
--- a/sources/pyside2/tests/QtGui/bug_PYSIDE-41.py
+++ b/sources/pyside2/tests/QtGui/bug_PYSIDE-41.py
@@ -30,8 +30,14 @@
# move this to QtCore -- QStringListModel is part of QtGui and there is no
# simple model class appropriate for this test in QtCore.
+import os
+import sys
import unittest
+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.QtCore import *
from PySide2.QtGui import *
diff --git a/sources/pyside2/tests/QtGui/deepcopy_test.py b/sources/pyside2/tests/QtGui/deepcopy_test.py
index b99912647..d4dcdd64c 100644
--- a/sources/pyside2/tests/QtGui/deepcopy_test.py
+++ b/sources/pyside2/tests/QtGui/deepcopy_test.py
@@ -26,8 +26,14 @@
##
#############################################################################
-import unittest
from copy import deepcopy
+import os
+import sys
+import unittest
+
+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.QtCore import QPoint
from PySide2.QtGui import QMatrix
diff --git a/sources/pyside2/tests/QtGui/float_to_int_implicit_conversion_test.py b/sources/pyside2/tests/QtGui/float_to_int_implicit_conversion_test.py
index 9277fecbb..5e8747a0c 100644
--- a/sources/pyside2/tests/QtGui/float_to_int_implicit_conversion_test.py
+++ b/sources/pyside2/tests/QtGui/float_to_int_implicit_conversion_test.py
@@ -32,7 +32,9 @@ import os
import sys
import unittest
-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(False)
from PySide2.QtGui import QImage, qRgb
diff --git a/sources/pyside2/tests/QtGui/pyside_reload_test.py b/sources/pyside2/tests/QtGui/pyside_reload_test.py
index b4e98c693..f3c7c3e8d 100644
--- a/sources/pyside2/tests/QtGui/pyside_reload_test.py
+++ b/sources/pyside2/tests/QtGui/pyside_reload_test.py
@@ -31,7 +31,9 @@ import shutil
import sys
import unittest
-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(False)
import py3kcompat as py3k
diff --git a/sources/pyside2/tests/QtGui/qcolor_reduce_test.py b/sources/pyside2/tests/QtGui/qcolor_reduce_test.py
index 7f904fd10..adb07fbf1 100644
--- a/sources/pyside2/tests/QtGui/qcolor_reduce_test.py
+++ b/sources/pyside2/tests/QtGui/qcolor_reduce_test.py
@@ -26,8 +26,15 @@
##
#############################################################################
-import unittest
+import os
import pickle
+import sys
+import unittest
+
+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.QtGui import QColor
class TestQColor (unittest.TestCase):
diff --git a/sources/pyside2/tests/QtGui/qcolor_test.py b/sources/pyside2/tests/QtGui/qcolor_test.py
index 021e7c128..55554b6c5 100644
--- a/sources/pyside2/tests/QtGui/qcolor_test.py
+++ b/sources/pyside2/tests/QtGui/qcolor_test.py
@@ -26,10 +26,16 @@
##
#############################################################################
-import unittest
import colorsys
-import PySide2
+import os
+import sys
+import unittest
+sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
+from init_paths import init_test_paths
+init_test_paths(False)
+
+import PySide2
from PySide2.QtCore import Qt
from PySide2.QtGui import QColor
diff --git a/sources/pyside2/tests/QtGui/qcursor_test.py b/sources/pyside2/tests/QtGui/qcursor_test.py
index 02c0fe514..7adc34788 100644
--- a/sources/pyside2/tests/QtGui/qcursor_test.py
+++ b/sources/pyside2/tests/QtGui/qcursor_test.py
@@ -34,7 +34,9 @@ import os
import sys
import unittest
-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(False)
from PySide2.QtGui import QBitmap, QCursor, QPixmap
from helper.usesqapplication import UsesQApplication
diff --git a/sources/pyside2/tests/QtGui/qdatastream_gui_operators_test.py b/sources/pyside2/tests/QtGui/qdatastream_gui_operators_test.py
index 9c35cd452..c9b5c16a5 100644
--- a/sources/pyside2/tests/QtGui/qdatastream_gui_operators_test.py
+++ b/sources/pyside2/tests/QtGui/qdatastream_gui_operators_test.py
@@ -32,7 +32,9 @@ import os
import sys
import unittest
-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(False)
from PySide2.QtCore import QDataStream, QByteArray, QIODevice, Qt
from PySide2.QtGui import QPixmap, QColor
diff --git a/sources/pyside2/tests/QtGui/qdesktopservices_test.py b/sources/pyside2/tests/QtGui/qdesktopservices_test.py
index e3c26719c..97bf97de1 100644
--- a/sources/pyside2/tests/QtGui/qdesktopservices_test.py
+++ b/sources/pyside2/tests/QtGui/qdesktopservices_test.py
@@ -28,8 +28,14 @@
'''Unit tests for QDesktopServices'''
+import os
+import sys
import unittest
+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.QtGui import QDesktopServices
from PySide2.QtCore import QUrl
diff --git a/sources/pyside2/tests/QtGui/qfontmetrics_test.py b/sources/pyside2/tests/QtGui/qfontmetrics_test.py
index 5b5c7d2bf..cbf0b0698 100644
--- a/sources/pyside2/tests/QtGui/qfontmetrics_test.py
+++ b/sources/pyside2/tests/QtGui/qfontmetrics_test.py
@@ -33,7 +33,9 @@ import os
import sys
import unittest
-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(False)
from PySide2.QtGui import QFont, QFontMetrics, QFontMetricsF
from PySide2.QtCore import QRect, QRectF, Qt, QSize, QSizeF
diff --git a/sources/pyside2/tests/QtGui/qguiapplication_test.py b/sources/pyside2/tests/QtGui/qguiapplication_test.py
index d1a044655..b761cf242 100644
--- a/sources/pyside2/tests/QtGui/qguiapplication_test.py
+++ b/sources/pyside2/tests/QtGui/qguiapplication_test.py
@@ -26,8 +26,14 @@
##
#############################################################################
+import os
+import sys
import unittest
+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.QtGui import QGuiApplication
class TestQGuiApplication(unittest.TestCase):
diff --git a/sources/pyside2/tests/QtGui/qicon_test.py b/sources/pyside2/tests/QtGui/qicon_test.py
index a8763e653..f3ad498e6 100644
--- a/sources/pyside2/tests/QtGui/qicon_test.py
+++ b/sources/pyside2/tests/QtGui/qicon_test.py
@@ -30,7 +30,9 @@ import os
import sys
import unittest
-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(False)
from helper.timedqapplication import TimedQApplication
from PySide2.QtGui import QIcon
diff --git a/sources/pyside2/tests/QtGui/qitemselection_test.py b/sources/pyside2/tests/QtGui/qitemselection_test.py
index 4bb0375ff..8e9639a31 100644
--- a/sources/pyside2/tests/QtGui/qitemselection_test.py
+++ b/sources/pyside2/tests/QtGui/qitemselection_test.py
@@ -30,7 +30,9 @@ import os
import sys
import unittest
-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(False)
from helper.usesqapplication import UsesQApplication
from PySide2.QtCore import QItemSelection
diff --git a/sources/pyside2/tests/QtGui/qkeysequence_test.py b/sources/pyside2/tests/QtGui/qkeysequence_test.py
index be28e5dec..226793400 100644
--- a/sources/pyside2/tests/QtGui/qkeysequence_test.py
+++ b/sources/pyside2/tests/QtGui/qkeysequence_test.py
@@ -30,7 +30,9 @@ import os
import sys
import unittest
-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(False)
from PySide2.QtCore import Qt
from PySide2.QtGui import QKeySequence
diff --git a/sources/pyside2/tests/QtGui/qmatrix_test.py b/sources/pyside2/tests/QtGui/qmatrix_test.py
index bc6a2b8ae..48380faf6 100644
--- a/sources/pyside2/tests/QtGui/qmatrix_test.py
+++ b/sources/pyside2/tests/QtGui/qmatrix_test.py
@@ -26,8 +26,14 @@
##
#############################################################################
+import os
+import sys
import unittest
+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.QtCore import QPoint
from PySide2.QtGui import QMatrix, QMatrix2x2, QMatrix4x4
diff --git a/sources/pyside2/tests/QtGui/qopenglbuffer_test.py b/sources/pyside2/tests/QtGui/qopenglbuffer_test.py
index c80bd41b2..a5d8385c9 100644
--- a/sources/pyside2/tests/QtGui/qopenglbuffer_test.py
+++ b/sources/pyside2/tests/QtGui/qopenglbuffer_test.py
@@ -33,7 +33,9 @@ import os
import sys
import unittest
-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(False)
from helper.usesqapplication import UsesQApplication
from PySide2.QtGui import QOpenGLBuffer
diff --git a/sources/pyside2/tests/QtGui/qopenglwindow_test.py b/sources/pyside2/tests/QtGui/qopenglwindow_test.py
index 316b39203..e39cfb19c 100644
--- a/sources/pyside2/tests/QtGui/qopenglwindow_test.py
+++ b/sources/pyside2/tests/QtGui/qopenglwindow_test.py
@@ -32,7 +32,9 @@ import os
import sys
import unittest
-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(False)
from helper.usesqapplication import UsesQApplication
diff --git a/sources/pyside2/tests/QtGui/qpainter_test.py b/sources/pyside2/tests/QtGui/qpainter_test.py
index 77cea835f..d86e69b64 100644
--- a/sources/pyside2/tests/QtGui/qpainter_test.py
+++ b/sources/pyside2/tests/QtGui/qpainter_test.py
@@ -26,8 +26,14 @@
##
#############################################################################
+import os
+import sys
import unittest
+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.QtGui import QPainter, QLinearGradient
from PySide2.QtCore import QLine, QLineF, QPoint, QPointF, QRect, QRectF, Qt
diff --git a/sources/pyside2/tests/QtGui/qpdfwriter_test.py b/sources/pyside2/tests/QtGui/qpdfwriter_test.py
index dbda66133..aae636d31 100644
--- a/sources/pyside2/tests/QtGui/qpdfwriter_test.py
+++ b/sources/pyside2/tests/QtGui/qpdfwriter_test.py
@@ -30,7 +30,9 @@ import os
import sys
import unittest
-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(False)
from helper.usesqapplication import UsesQApplication
from PySide2.QtGui import QPageLayout, QPageSize, QPdfWriter, QTextDocument
diff --git a/sources/pyside2/tests/QtGui/qpixelformat_test.py b/sources/pyside2/tests/QtGui/qpixelformat_test.py
index fb0c10611..30ea213d6 100644
--- a/sources/pyside2/tests/QtGui/qpixelformat_test.py
+++ b/sources/pyside2/tests/QtGui/qpixelformat_test.py
@@ -32,7 +32,9 @@ import os
import sys
import unittest
-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(False)
from helper.usesqapplication import UsesQApplication
from PySide2.QtCore import QSize, Qt
diff --git a/sources/pyside2/tests/QtGui/qpixmap_test.py b/sources/pyside2/tests/QtGui/qpixmap_test.py
index d59fa0281..7d2d75bc3 100644
--- a/sources/pyside2/tests/QtGui/qpixmap_test.py
+++ b/sources/pyside2/tests/QtGui/qpixmap_test.py
@@ -30,7 +30,9 @@ import os
import sys
import unittest
-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(False)
from helper.usesqapplication import UsesQApplication
from PySide2.QtGui import *
diff --git a/sources/pyside2/tests/QtGui/qpixmapcache_test.py b/sources/pyside2/tests/QtGui/qpixmapcache_test.py
index a0e8dc03c..672ea79d5 100644
--- a/sources/pyside2/tests/QtGui/qpixmapcache_test.py
+++ b/sources/pyside2/tests/QtGui/qpixmapcache_test.py
@@ -30,7 +30,9 @@ import os
import sys
import unittest
-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(False)
from helper.usesqapplication import UsesQApplication
from PySide2.QtGui import QPixmapCache, QPixmap
diff --git a/sources/pyside2/tests/QtGui/qpolygonf_test.py b/sources/pyside2/tests/QtGui/qpolygonf_test.py
index 023af533d..a21518a7e 100644
--- a/sources/pyside2/tests/QtGui/qpolygonf_test.py
+++ b/sources/pyside2/tests/QtGui/qpolygonf_test.py
@@ -26,7 +26,14 @@
##
#############################################################################
+import os
+import sys
import unittest
+
+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.QtCore import *
from PySide2.QtGui import *
diff --git a/sources/pyside2/tests/QtGui/qradialgradient_test.py b/sources/pyside2/tests/QtGui/qradialgradient_test.py
index c9f5bd8b0..728a721f9 100644
--- a/sources/pyside2/tests/QtGui/qradialgradient_test.py
+++ b/sources/pyside2/tests/QtGui/qradialgradient_test.py
@@ -26,8 +26,14 @@
##
#############################################################################
+import os
+import sys
import unittest
+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.QtGui import QRadialGradient
from PySide2.QtCore import QPointF
diff --git a/sources/pyside2/tests/QtGui/qrasterwindow_test.py b/sources/pyside2/tests/QtGui/qrasterwindow_test.py
index 5bb13600b..f18ceaaf4 100644
--- a/sources/pyside2/tests/QtGui/qrasterwindow_test.py
+++ b/sources/pyside2/tests/QtGui/qrasterwindow_test.py
@@ -32,7 +32,9 @@ import os
import sys
import unittest
-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(False)
from helper.usesqapplication import UsesQApplication
from PySide2.QtCore import QEvent, QPoint, QRect, QSize, QTimer, Qt
diff --git a/sources/pyside2/tests/QtGui/qregion_test.py b/sources/pyside2/tests/QtGui/qregion_test.py
index 085fcec3a..3e05617ef 100644
--- a/sources/pyside2/tests/QtGui/qregion_test.py
+++ b/sources/pyside2/tests/QtGui/qregion_test.py
@@ -30,7 +30,9 @@ import os
import sys
import unittest
-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(False)
from PySide2.QtGui import QRegion
from PySide2.QtCore import QPoint
diff --git a/sources/pyside2/tests/QtGui/qstylehints_test.py b/sources/pyside2/tests/QtGui/qstylehints_test.py
index a771d38f2..3cecfa60b 100644
--- a/sources/pyside2/tests/QtGui/qstylehints_test.py
+++ b/sources/pyside2/tests/QtGui/qstylehints_test.py
@@ -32,7 +32,9 @@ import os
import sys
import unittest
-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(False)
from helper.usesqapplication import UsesQApplication
from PySide2.QtGui import QStyleHints
diff --git a/sources/pyside2/tests/QtGui/qtextdocument_functions.py b/sources/pyside2/tests/QtGui/qtextdocument_functions.py
index f1376aa5b..765a6b5b7 100644
--- a/sources/pyside2/tests/QtGui/qtextdocument_functions.py
+++ b/sources/pyside2/tests/QtGui/qtextdocument_functions.py
@@ -26,8 +26,14 @@
##
#############################################################################
+import os
+import sys
import unittest
+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.QtGui import Qt
from PySide2.QtCore import QTextCodec
diff --git a/sources/pyside2/tests/QtGui/qtextdocument_undoredo_test.py b/sources/pyside2/tests/QtGui/qtextdocument_undoredo_test.py
index ce5474b42..1cbb8ff29 100644
--- a/sources/pyside2/tests/QtGui/qtextdocument_undoredo_test.py
+++ b/sources/pyside2/tests/QtGui/qtextdocument_undoredo_test.py
@@ -26,8 +26,14 @@
##
#############################################################################
+import os
+import sys
import unittest
+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.QtGui import QTextDocument, QTextCursor
class QTextDocumentTest(unittest.TestCase):
diff --git a/sources/pyside2/tests/QtGui/qtextdocumentwriter_test.py b/sources/pyside2/tests/QtGui/qtextdocumentwriter_test.py
index f13ba884e..d9d96dd34 100644
--- a/sources/pyside2/tests/QtGui/qtextdocumentwriter_test.py
+++ b/sources/pyside2/tests/QtGui/qtextdocumentwriter_test.py
@@ -30,7 +30,9 @@ import os
import sys
import unittest
-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(False)
from PySide2.QtGui import QTextDocumentWriter, QTextDocument
from PySide2.QtCore import QBuffer
diff --git a/sources/pyside2/tests/QtGui/qtextline_test.py b/sources/pyside2/tests/QtGui/qtextline_test.py
index 5abdc076b..92af7b823 100644
--- a/sources/pyside2/tests/QtGui/qtextline_test.py
+++ b/sources/pyside2/tests/QtGui/qtextline_test.py
@@ -30,7 +30,9 @@ import os
import sys
import unittest
-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(False)
from PySide2.QtGui import QTextLayout
from helper.usesqapplication import UsesQApplication
diff --git a/sources/pyside2/tests/QtGui/qtransform_test.py b/sources/pyside2/tests/QtGui/qtransform_test.py
index f121868b0..29f9b86bb 100644
--- a/sources/pyside2/tests/QtGui/qtransform_test.py
+++ b/sources/pyside2/tests/QtGui/qtransform_test.py
@@ -26,7 +26,14 @@
##
#############################################################################
+import os
+import sys
import unittest
+
+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.QtCore import QPointF
from PySide2.QtGui import QTransform, QPolygonF, QPolygonF
diff --git a/sources/pyside2/tests/QtGui/repr_test.py b/sources/pyside2/tests/QtGui/repr_test.py
index bcf276319..e06f4d487 100644
--- a/sources/pyside2/tests/QtGui/repr_test.py
+++ b/sources/pyside2/tests/QtGui/repr_test.py
@@ -26,8 +26,14 @@
##
#############################################################################
+import os
+import sys
import unittest
+sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
+from init_paths import init_test_paths
+init_test_paths(False)
+
import PySide2
from PySide2.QtCore import QPoint
from PySide2.QtGui import QMatrix
diff --git a/sources/pyside2/tests/QtGui/timed_app_and_patching_test.py b/sources/pyside2/tests/QtGui/timed_app_and_patching_test.py
index 897310057..1f873fa02 100644
--- a/sources/pyside2/tests/QtGui/timed_app_and_patching_test.py
+++ b/sources/pyside2/tests/QtGui/timed_app_and_patching_test.py
@@ -30,7 +30,9 @@ import os
import sys
import unittest
-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(False)
from helper.timedqapplication import TimedQApplication
from PySide2.support import deprecated