From 5b868dae533e37b13be7890840191263a2caaa23 Mon Sep 17 00:00:00 2001 From: Friedemann Kleint Date: Thu, 13 Feb 2020 09:43:03 +0100 Subject: 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 Reviewed-by: Cristian Maureira-Fredes --- sources/pyside2/tests/QtWebKit/shouldInterruptjavascript_test.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'sources/pyside2/tests/QtWebKit/shouldInterruptjavascript_test.py') diff --git a/sources/pyside2/tests/QtWebKit/shouldInterruptjavascript_test.py b/sources/pyside2/tests/QtWebKit/shouldInterruptjavascript_test.py index b49fe13dd..b8f21d48f 100644 --- a/sources/pyside2/tests/QtWebKit/shouldInterruptjavascript_test.py +++ b/sources/pyside2/tests/QtWebKit/shouldInterruptjavascript_test.py @@ -29,7 +29,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 import QtCore, QtWebKit from helper import UsesQApplication -- cgit v1.2.3