diff options
-rw-r--r-- | sources/shiboken2/tests/samplebinding/enum_test.py | 3 | ||||
-rw-r--r-- | sources/shiboken2/tests/smartbinding/smart_pointer_test.py | 2 |
2 files changed, 4 insertions, 1 deletions
diff --git a/sources/shiboken2/tests/samplebinding/enum_test.py b/sources/shiboken2/tests/samplebinding/enum_test.py index c8a3d30f1..0beb72033 100644 --- a/sources/shiboken2/tests/samplebinding/enum_test.py +++ b/sources/shiboken2/tests/samplebinding/enum_test.py @@ -39,6 +39,9 @@ sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__)))) from shiboken_paths import init_paths init_paths() +import shiboken2 +# This is needed after the introduction of BUILD_DIR. + import sample from sample import SampleNamespace, ObjectType, Event from py3kcompat import IS_PY3K, b diff --git a/sources/shiboken2/tests/smartbinding/smart_pointer_test.py b/sources/shiboken2/tests/smartbinding/smart_pointer_test.py index 94f20c800..6210916d3 100644 --- a/sources/shiboken2/tests/smartbinding/smart_pointer_test.py +++ b/sources/shiboken2/tests/smartbinding/smart_pointer_test.py @@ -183,7 +183,7 @@ class SmartPointerTests(unittest.TestCase): self.assertEqual(objCount(), 10) # clear and delete all objects in the list - ptrToObjList.clear() + del ptrToObjList[:] # Python 2.7 lists have no clear method self.assertEqual(len(ptrToObjList), 0) self.assertEqual(objCount(), 1) |