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/webview_test.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'sources/pyside2/tests/QtWebKit/webview_test.py') diff --git a/sources/pyside2/tests/QtWebKit/webview_test.py b/sources/pyside2/tests/QtWebKit/webview_test.py index ce7a3a7bf..50f20c40d 100644 --- a/sources/pyside2/tests/QtWebKit/webview_test.py +++ b/sources/pyside2/tests/QtWebKit/webview_test.py @@ -28,9 +28,13 @@ '''Test cases for QWebView''' +import os +import sys import unittest + +sys.path.append(os.path.join(os.path.dirname(os.path.dirname(os.path.abspath(__file__))), "util")) + import py3kcompat as py3k -import sys from PySide2.QtCore import QObject, SIGNAL, QUrl from PySide2.QtWebKit import QWebPage, QWebView -- cgit v1.2.3