aboutsummaryrefslogtreecommitdiffstats
path: root/sources/pyside2/tests/QtWidgets/standardpixmap_test.py
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@qt.io>2020-02-13 09:43:03 +0100
committerFriedemann Kleint <Friedemann.Kleint@qt.io>2020-02-19 21:09:26 +0100
commit5b868dae533e37b13be7890840191263a2caaa23 (patch)
tree2de89f87e11aa94a007c45e8452b171caf867ba5 /sources/pyside2/tests/QtWidgets/standardpixmap_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 <qt_ci_bot@qt-project.org> Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
Diffstat (limited to 'sources/pyside2/tests/QtWidgets/standardpixmap_test.py')
-rw-r--r--sources/pyside2/tests/QtWidgets/standardpixmap_test.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/sources/pyside2/tests/QtWidgets/standardpixmap_test.py b/sources/pyside2/tests/QtWidgets/standardpixmap_test.py
index 57c697aa3..21bc4cebe 100644
--- a/sources/pyside2/tests/QtWidgets/standardpixmap_test.py
+++ b/sources/pyside2/tests/QtWidgets/standardpixmap_test.py
@@ -26,8 +26,12 @@
##
#############################################################################
+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.QtGui import QPixmap
from PySide2.QtWidgets import QStyle