diff options
Diffstat (limited to 'sources/shiboken2/tests/otherbinding')
11 files changed, 64 insertions, 1 deletions
diff --git a/sources/shiboken2/tests/otherbinding/collector_external_operator_test.py b/sources/shiboken2/tests/otherbinding/collector_external_operator_test.py index b65663f9d..6014b8a59 100644 --- a/sources/shiboken2/tests/otherbinding/collector_external_operator_test.py +++ b/sources/shiboken2/tests/otherbinding/collector_external_operator_test.py @@ -31,8 +31,14 @@ '''Test cases for Collector shift operators defined in other modules.''' +import os +import sys import unittest +sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__)))) +from shiboken_paths import init_paths +init_paths() + from sample import Collector, ObjectType from other import OtherObjectType diff --git a/sources/shiboken2/tests/otherbinding/conversion_operator_for_class_without_implicit_conversions_test.py b/sources/shiboken2/tests/otherbinding/conversion_operator_for_class_without_implicit_conversions_test.py index 2aba4bd09..1e992ebc8 100755..100644 --- a/sources/shiboken2/tests/otherbinding/conversion_operator_for_class_without_implicit_conversions_test.py +++ b/sources/shiboken2/tests/otherbinding/conversion_operator_for_class_without_implicit_conversions_test.py @@ -33,8 +33,14 @@ being that the latter defines a new conversion operator for the former, and this one has no implicit conversions.''' +import os +import sys import unittest +sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__)))) +from shiboken_paths import init_paths +init_paths() + from sample import NoImplicitConversion from other import ExtendsNoImplicitConversion diff --git a/sources/shiboken2/tests/otherbinding/extended_multiply_operator_test.py b/sources/shiboken2/tests/otherbinding/extended_multiply_operator_test.py index 0c58fbf5b..5ad4763b7 100755..100644 --- a/sources/shiboken2/tests/otherbinding/extended_multiply_operator_test.py +++ b/sources/shiboken2/tests/otherbinding/extended_multiply_operator_test.py @@ -31,8 +31,14 @@ '''Test cases for libsample's Point multiply operator defined in libother module.''' +import os +import sys import unittest +sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__)))) +from shiboken_paths import init_paths +init_paths() + from sample import Point from other import Number diff --git a/sources/shiboken2/tests/otherbinding/module_reload_test.py b/sources/shiboken2/tests/otherbinding/module_reload_test.py index 0010130f9..368425cd0 100644 --- a/sources/shiboken2/tests/otherbinding/module_reload_test.py +++ b/sources/shiboken2/tests/otherbinding/module_reload_test.py @@ -30,10 +30,14 @@ ############################################################################# import os -import sys import shutil +import sys import unittest +sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__)))) +from shiboken_paths import init_paths +init_paths() + from py3kcompat import IS_PY3K if IS_PY3K: diff --git a/sources/shiboken2/tests/otherbinding/new_ctor_operator_test.py b/sources/shiboken2/tests/otherbinding/new_ctor_operator_test.py index 09988496a..84dfe9839 100755..100644 --- a/sources/shiboken2/tests/otherbinding/new_ctor_operator_test.py +++ b/sources/shiboken2/tests/otherbinding/new_ctor_operator_test.py @@ -31,8 +31,14 @@ '''Tests calling Str constructor using a Number parameter, being that number defines a cast operator to Str.''' +import os +import sys import unittest +sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__)))) +from shiboken_paths import init_paths +init_paths() + from sample import Str from other import Number diff --git a/sources/shiboken2/tests/otherbinding/objtypehashes_test.py b/sources/shiboken2/tests/otherbinding/objtypehashes_test.py index a52957481..92f93a090 100644 --- a/sources/shiboken2/tests/otherbinding/objtypehashes_test.py +++ b/sources/shiboken2/tests/otherbinding/objtypehashes_test.py @@ -26,7 +26,13 @@ ## ############################################################################# +import os +import sys import unittest + +sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__)))) +from shiboken_paths import init_paths +init_paths() from sample import * from other import * import shiboken2 as shiboken diff --git a/sources/shiboken2/tests/otherbinding/otherderived_test.py b/sources/shiboken2/tests/otherbinding/otherderived_test.py index e6ed761b4..d8dc9b686 100644 --- a/sources/shiboken2/tests/otherbinding/otherderived_test.py +++ b/sources/shiboken2/tests/otherbinding/otherderived_test.py @@ -31,9 +31,14 @@ '''Test cases for OtherDerived class''' +import os import sys import unittest +sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__)))) +from shiboken_paths import init_paths +init_paths() + from sample import Abstract, Derived from other import OtherDerived, Number diff --git a/sources/shiboken2/tests/otherbinding/signature_test.py b/sources/shiboken2/tests/otherbinding/signature_test.py index e9fcff860..06894eaf8 100644 --- a/sources/shiboken2/tests/otherbinding/signature_test.py +++ b/sources/shiboken2/tests/otherbinding/signature_test.py @@ -31,8 +31,14 @@ '''Test cases for functions signature''' +import os +import sys import unittest +sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__)))) +from shiboken_paths import init_paths +init_paths() + from other import OtherObjectType from helper import objectFullname diff --git a/sources/shiboken2/tests/otherbinding/typediscovery_test.py b/sources/shiboken2/tests/otherbinding/typediscovery_test.py index a9eb88d80..200d091b0 100644 --- a/sources/shiboken2/tests/otherbinding/typediscovery_test.py +++ b/sources/shiboken2/tests/otherbinding/typediscovery_test.py @@ -31,8 +31,14 @@ '''Test cases for type discovery''' +import os +import sys import unittest +sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__)))) +from shiboken_paths import init_paths +init_paths() + from sample import Abstract, Base1, Derived, MDerived1, MDerived3, SonOfMDerived1 from other import OtherMultipleDerived diff --git a/sources/shiboken2/tests/otherbinding/usersprimitivefromothermodule_test.py b/sources/shiboken2/tests/otherbinding/usersprimitivefromothermodule_test.py index fe13cf601..a69ee23f0 100755..100644 --- a/sources/shiboken2/tests/otherbinding/usersprimitivefromothermodule_test.py +++ b/sources/shiboken2/tests/otherbinding/usersprimitivefromothermodule_test.py @@ -31,7 +31,13 @@ '''Tests user defined primitive type from a required module.''' +import os +import sys import unittest + +sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__)))) +from shiboken_paths import init_paths +init_paths() from other import Number class UserDefinedPrimitiveTypeFromRequiredModuleTest(unittest.TestCase): diff --git a/sources/shiboken2/tests/otherbinding/wrongctor_test.py b/sources/shiboken2/tests/otherbinding/wrongctor_test.py index 15f43d0ca..29d085315 100644 --- a/sources/shiboken2/tests/otherbinding/wrongctor_test.py +++ b/sources/shiboken2/tests/otherbinding/wrongctor_test.py @@ -29,7 +29,13 @@ ## ############################################################################# +import os +import sys import unittest + +sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__)))) +from shiboken_paths import init_paths +init_paths() from sample import * from other import * |