aboutsummaryrefslogtreecommitdiffstats
path: root/sources/pyside2/tests/QtCore/duck_punching_test.py
diff options
context:
space:
mode:
Diffstat (limited to 'sources/pyside2/tests/QtCore/duck_punching_test.py')
-rw-r--r--sources/pyside2/tests/QtCore/duck_punching_test.py12
1 files changed, 9 insertions, 3 deletions
diff --git a/sources/pyside2/tests/QtCore/duck_punching_test.py b/sources/pyside2/tests/QtCore/duck_punching_test.py
index 48d86572a..3450314dd 100644
--- a/sources/pyside2/tests/QtCore/duck_punching_test.py
+++ b/sources/pyside2/tests/QtCore/duck_punching_test.py
@@ -30,11 +30,17 @@
'''Test case for duck punching new implementations of C++ virtual methods into object instances.'''
-import unittest
-import types
+import os
import sys
+import types
+import unittest
+
+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
-from helper import UsesQCoreApplication
+from helper.usesqcoreapplication import UsesQCoreApplication
def MethodType(func, instance, instanceType):
if sys.version_info[0] == 3: