aboutsummaryrefslogtreecommitdiffstats
path: root/sources/pyside2/tests/QtCore/qobject_event_filter_test.py
diff options
context:
space:
mode:
Diffstat (limited to 'sources/pyside2/tests/QtCore/qobject_event_filter_test.py')
-rw-r--r--sources/pyside2/tests/QtCore/qobject_event_filter_test.py9
1 files changed, 7 insertions, 2 deletions
diff --git a/sources/pyside2/tests/QtCore/qobject_event_filter_test.py b/sources/pyside2/tests/QtCore/qobject_event_filter_test.py
index e65757b17..ff46bc79f 100644
--- a/sources/pyside2/tests/QtCore/qobject_event_filter_test.py
+++ b/sources/pyside2/tests/QtCore/qobject_event_filter_test.py
@@ -28,13 +28,18 @@
'''Test cases for QObject.eventFilter'''
+import os
+import sys
import unittest
import weakref
-import sys
+
+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, QTimerEvent
-from helper import UsesQCoreApplication
+from helper.usesqcoreapplication import UsesQCoreApplication
class FilterObject(QObject):
'''Filter object for the basic test'''