aboutsummaryrefslogtreecommitdiffstats
path: root/sources/pyside2/tests/QtWidgets/qgraphicsscene_test.py
diff options
context:
space:
mode:
authorFriedemann Kleint <[email protected]>2020-02-13 09:43:03 +0100
committerFriedemann Kleint <[email protected]>2020-02-19 21:09:26 +0100
commit5b868dae533e37b13be7890840191263a2caaa23 (patch)
tree2de89f87e11aa94a007c45e8452b171caf867ba5 /sources/pyside2/tests/QtWidgets/qgraphicsscene_test.py
parent5899fa54279b9d7bfbdda8a8d2a1e60a3c7b264a (diff)
Make PySide2 tests using the helper modules from 'util' self-contained
Add the relative import path to locate the modules "helper" and "py3kcompat". The tests can then be launched from the command line without the ctest environment. Change-Id: Ia50663d7381b52cb248de3e4d23002a195ca9139 Reviewed-by: Qt CI Bot <[email protected]> Reviewed-by: Cristian Maureira-Fredes <[email protected]>
Diffstat (limited to 'sources/pyside2/tests/QtWidgets/qgraphicsscene_test.py')
-rw-r--r--sources/pyside2/tests/QtWidgets/qgraphicsscene_test.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/sources/pyside2/tests/QtWidgets/qgraphicsscene_test.py b/sources/pyside2/tests/QtWidgets/qgraphicsscene_test.py
index 80a09dc57..40c7abd4e 100644
--- a/sources/pyside2/tests/QtWidgets/qgraphicsscene_test.py
+++ b/sources/pyside2/tests/QtWidgets/qgraphicsscene_test.py
@@ -28,8 +28,12 @@
'''Basic test cases for QGraphicsScene'''
-import unittest
import gc
+import os
+import sys
+import unittest
+
+sys.path.append(os.path.join(os.path.dirname(os.path.dirname(os.path.abspath(__file__))), "util"))
from PySide2.QtCore import QPointF
from PySide2.QtGui import QPolygonF, QPixmap, QPainterPath, QTransform, QWindow