aboutsummaryrefslogtreecommitdiffstats
path: root/sources/pyside6/tests/pysidetest/signalwithdefaultvalue_test.py
diff options
context:
space:
mode:
Diffstat (limited to 'sources/pyside6/tests/pysidetest/signalwithdefaultvalue_test.py')
-rw-r--r--sources/pyside6/tests/pysidetest/signalwithdefaultvalue_test.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/sources/pyside6/tests/pysidetest/signalwithdefaultvalue_test.py b/sources/pyside6/tests/pysidetest/signalwithdefaultvalue_test.py
index 458a87528..28bc6313b 100644
--- a/sources/pyside6/tests/pysidetest/signalwithdefaultvalue_test.py
+++ b/sources/pyside6/tests/pysidetest/signalwithdefaultvalue_test.py
@@ -2,7 +2,7 @@
#############################################################################
##
-## Copyright (C) 2016 The Qt Company Ltd.
+## Copyright (C) 2021 The Qt Company Ltd.
## Contact: https://www.qt.io/licensing/
##
## This file is part of the test suite of Qt for Python.
@@ -28,6 +28,7 @@
##
#############################################################################
+import gc
import os
import sys
import unittest
@@ -54,6 +55,8 @@ class SignalWithDefaultValueTest(unittest.TestCase):
del self.obj
del self.void_called
del self.bool_called
+ # PYSIDE-535: Need to collect garbage in PyPy to trigger deletion
+ gc.collect()
def testConnectNewStyleEmitVoidSignal(self):
def callbackVoid():