diff options
| author | Cristián Maureira-Fredes <cristian.maureira-fredes@qt.io> | 2024-11-04 11:47:41 +0100 |
|---|---|---|
| committer | Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io> | 2024-11-05 13:28:20 +0000 |
| commit | 0b7cedd3f01cd6fb97aa724f0009236d933892b5 (patch) | |
| tree | 16040e22737d4d0a79852700f460905b33ed24dd /sources/shiboken6/tests/smartbinding/smart_pointer_test.py | |
| parent | 1fc1012c252a738c25cb11a3f7764b7139762bed (diff) | |
Remove traces of Python 2: tests and flake fixes
Addressing a few comments from tests that were related
to the Python 2 compatibility.
Pick-to: 6.8
Change-Id: I88c614549cfb91f879fe3e0d82a6988362e0ce19
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Diffstat (limited to 'sources/shiboken6/tests/smartbinding/smart_pointer_test.py')
| -rw-r--r-- | sources/shiboken6/tests/smartbinding/smart_pointer_test.py | 2 |
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) |
