aboutsummaryrefslogtreecommitdiffstats
path: root/sources/shiboken6/tests/otherbinding/otherderived_test.py
diff options
context:
space:
mode:
Diffstat (limited to 'sources/shiboken6/tests/otherbinding/otherderived_test.py')
-rw-r--r--sources/shiboken6/tests/otherbinding/otherderived_test.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/sources/shiboken6/tests/otherbinding/otherderived_test.py b/sources/shiboken6/tests/otherbinding/otherderived_test.py
index 9a68e2ad4..946f82121 100644
--- a/sources/shiboken6/tests/otherbinding/otherderived_test.py
+++ b/sources/shiboken6/tests/otherbinding/otherderived_test.py
@@ -3,7 +3,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.
@@ -31,6 +31,7 @@
'''Test cases for OtherDerived class'''
+import gc
import os
import sys
import unittest
@@ -75,6 +76,8 @@ class MultipleTest(unittest.TestCase):
self.assertTrue(isinstance(o, Number))
self.assertTrue(isinstance(o, Derived))
del o
+ # PYSIDE-535: Need to collect garbage in PyPy to trigger deletion
+ gc.collect()
def testMethodCall(self):
o = Multiple()