diff options
Diffstat (limited to 'sources/pyside6/tests/QtWidgets/bug_576.py')
| -rw-r--r-- | sources/pyside6/tests/QtWidgets/bug_576.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sources/pyside6/tests/QtWidgets/bug_576.py b/sources/pyside6/tests/QtWidgets/bug_576.py index 7a078ce9d..ac7895f0c 100644 --- a/sources/pyside6/tests/QtWidgets/bug_576.py +++ b/sources/pyside6/tests/QtWidgets/bug_576.py @@ -1,6 +1,6 @@ ############################################################################# ## -## 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,7 +29,7 @@ """ Unittest for bug #576 """ """ http://bugs.openbossa.org/show_bug.cgi?id=576 """ -import sys +import gc import os import sys import unittest @@ -64,6 +64,8 @@ class Bug576(unittest.TestCase): b.setParent(None) self.assertEqual(sys.getrefcount(b), 2) del b + # PYSIDE-535: Need to collect garbage in PyPy to trigger deletion + gc.collect() self.assertTrue(self._destroyed) |
