aboutsummaryrefslogtreecommitdiffstats
path: root/sources/shiboken6/tests/samplebinding
diff options
context:
space:
mode:
authorChristian Tismer <tismer@stackless.com>2022-03-09 19:00:02 +0100
committerChristian Tismer <tismer@stackless.com>2022-03-11 09:19:08 +0000
commitadf99f8dcdfd709faf2ac108da23181896288fe1 (patch)
tree4e8916132335bd747d9b3cc185ffb14b8fbfe137 /sources/shiboken6/tests/samplebinding
parent332b99ecda74e5d575d4ddcd2d86fa4ffc283e3c (diff)
PyPySide: fix a bunch of pseudo-errors
These ten errors could be removed. There were more GC calls needed. Sometimes, calling GC twice did the trick. We are now at 14 core errors, 18 in total :) Task-number: PYSIDE-1843 Task-number: PYSIDE-535 Change-Id: Iafb3f93682639ba28e5326f3b8cdebf6670a7b69 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Diffstat (limited to 'sources/shiboken6/tests/samplebinding')
-rw-r--r--sources/shiboken6/tests/samplebinding/ownership_invalidate_child_test.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/sources/shiboken6/tests/samplebinding/ownership_invalidate_child_test.py b/sources/shiboken6/tests/samplebinding/ownership_invalidate_child_test.py
index 7d45462b6..5cbe60638 100644
--- a/sources/shiboken6/tests/samplebinding/ownership_invalidate_child_test.py
+++ b/sources/shiboken6/tests/samplebinding/ownership_invalidate_child_test.py
@@ -70,6 +70,8 @@ class InvalidateChildTest(unittest.TestCase):
del parent
# PYSIDE-535: Need to collect garbage in PyPy to trigger deletion
gc.collect()
+ # PYSIDE-535: Why do I need to do it twice, here?
+ gc.collect()
self.assertEqual(child1.objectName(), 'child1')
self.assertRaises(RuntimeError, child2.objectName)