aboutsummaryrefslogtreecommitdiffstats
path: root/sources/pyside2/tests/QtCore/qobject_connect_notify_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/QtCore/qobject_connect_notify_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/QtCore/qobject_connect_notify_test.py')
-rw-r--r--sources/pyside2/tests/QtCore/qobject_connect_notify_test.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/sources/pyside2/tests/QtCore/qobject_connect_notify_test.py b/sources/pyside2/tests/QtCore/qobject_connect_notify_test.py
index fdd71957b..a7774b996 100644
--- a/sources/pyside2/tests/QtCore/qobject_connect_notify_test.py
+++ b/sources/pyside2/tests/QtCore/qobject_connect_notify_test.py
@@ -30,7 +30,12 @@
''' Test case for QObject::connectNotify()'''
+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 *
from helper import UsesQCoreApplication