diff options
Diffstat (limited to 'sources/pyside6/tests/signals/ref03_test.py')
| -rw-r--r-- | sources/pyside6/tests/signals/ref03_test.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sources/pyside6/tests/signals/ref03_test.py b/sources/pyside6/tests/signals/ref03_test.py index 8274c9439..a0ff927b8 100644 --- a/sources/pyside6/tests/signals/ref03_test.py +++ b/sources/pyside6/tests/signals/ref03_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. @@ -29,6 +29,7 @@ ## ############################################################################# +import gc import os import sys import unittest @@ -48,6 +49,8 @@ class DisconnectSignalsTest(unittest.TestCase): def tearDown(self): del self.emitter + # PYSIDE-535: Need to collect garbage in PyPy to trigger deletion + gc.collect() @unittest.skipUnless(hasattr(sys, "getrefcount"), f"{sys.implementation.name} has no refcount") def testConnectionRefCount(self): |
