aboutsummaryrefslogtreecommitdiffstats
path: root/sources/pyside6/tests/signals/bug_79.py
diff options
context:
space:
mode:
Diffstat (limited to 'sources/pyside6/tests/signals/bug_79.py')
-rw-r--r--sources/pyside6/tests/signals/bug_79.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/sources/pyside6/tests/signals/bug_79.py b/sources/pyside6/tests/signals/bug_79.py
index 54bd1f076..0e12301f2 100644
--- a/sources/pyside6/tests/signals/bug_79.py
+++ b/sources/pyside6/tests/signals/bug_79.py
@@ -38,6 +38,11 @@ class ConnectTest(unittest.TestCase):
gc.collect()
# if this is no debug build, then we check at least that
# we do not crash any longer.
+ for idx in range(200):
+ # PYSIDE-2230: Warm-up is necessary before measuring, because
+ # the code changes the constant parts after some time.
+ o.selectionModel().destroyed.connect(self.callback)
+ o.selectionModel().destroyed.disconnect(self.callback)
if not skiptest:
total = gettotalrefcount()
for idx in range(1000):