aboutsummaryrefslogtreecommitdiffstats
path: root/sources/pyside2/tests/QtCore/child_event_test.py
diff options
context:
space:
mode:
Diffstat (limited to 'sources/pyside2/tests/QtCore/child_event_test.py')
-rw-r--r--sources/pyside2/tests/QtCore/child_event_test.py11
1 files changed, 8 insertions, 3 deletions
diff --git a/sources/pyside2/tests/QtCore/child_event_test.py b/sources/pyside2/tests/QtCore/child_event_test.py
index d9c92d537..8c600210a 100644
--- a/sources/pyside2/tests/QtCore/child_event_test.py
+++ b/sources/pyside2/tests/QtCore/child_event_test.py
@@ -30,11 +30,16 @@
'''Test case for QObject.childEvent and QTimer.childEvent overloading'''
+import os
+import sys
import unittest
-from time import sleep
-from PySide2.QtCore import QObject, QTimer, QCoreApplication
-from helper import UsesQCoreApplication
+sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
+from init_paths import init_test_paths
+init_test_paths(False)
+
+from PySide2.QtCore import QObject, QTimer, QCoreApplication
+from helper.usesqcoreapplication import UsesQCoreApplication
class ExtQObject(QObject):
def __init__(self):