diff options
author | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2020-02-13 09:43:03 +0100 |
---|---|---|
committer | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2020-02-19 21:09:26 +0100 |
commit | 5b868dae533e37b13be7890840191263a2caaa23 (patch) | |
tree | 2de89f87e11aa94a007c45e8452b171caf867ba5 /sources/pyside2/tests/QtCore/qtimer_singleshot_test.py | |
parent | 5899fa54279b9d7bfbdda8a8d2a1e60a3c7b264a (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/qtimer_singleshot_test.py')
-rw-r--r-- | sources/pyside2/tests/QtCore/qtimer_singleshot_test.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sources/pyside2/tests/QtCore/qtimer_singleshot_test.py b/sources/pyside2/tests/QtCore/qtimer_singleshot_test.py index e25a97c3e..e74099c77 100644 --- a/sources/pyside2/tests/QtCore/qtimer_singleshot_test.py +++ b/sources/pyside2/tests/QtCore/qtimer_singleshot_test.py @@ -30,8 +30,12 @@ '''Test cases for QTimer.singleShot''' +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 QObject, QTimer, QCoreApplication, Signal from helper import UsesQCoreApplication |