aboutsummaryrefslogtreecommitdiffstats
path: root/sources/shiboken6/tests/smartbinding/smart_pointer_test.py
diff options
context:
space:
mode:
Diffstat (limited to 'sources/shiboken6/tests/smartbinding/smart_pointer_test.py')
-rw-r--r--sources/shiboken6/tests/smartbinding/smart_pointer_test.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/sources/shiboken6/tests/smartbinding/smart_pointer_test.py b/sources/shiboken6/tests/smartbinding/smart_pointer_test.py
index 1c35a3e01..64267fba7 100644
--- a/sources/shiboken6/tests/smartbinding/smart_pointer_test.py
+++ b/sources/shiboken6/tests/smartbinding/smart_pointer_test.py
@@ -205,7 +205,7 @@ class SmartPointerTests(unittest.TestCase):
self.assertEqual(objCount(), 10)
# clear and delete all objects in the list
- del ptrToObjList[:] # Python 2.7 lists have no clear method
+ ptrToObjList.clear()
# PYSIDE-535: Need to collect garbage in PyPy to trigger deletion
gc.collect()
self.assertEqual(len(ptrToObjList), 0)