aboutsummaryrefslogtreecommitdiffstats
path: root/sources/pyside6/tests/QtWidgets/qtoolbar_test.py
diff options
context:
space:
mode:
Diffstat (limited to 'sources/pyside6/tests/QtWidgets/qtoolbar_test.py')
-rw-r--r--sources/pyside6/tests/QtWidgets/qtoolbar_test.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/sources/pyside6/tests/QtWidgets/qtoolbar_test.py b/sources/pyside6/tests/QtWidgets/qtoolbar_test.py
index 3f86c3f98..e4c59d148 100644
--- a/sources/pyside6/tests/QtWidgets/qtoolbar_test.py
+++ b/sources/pyside6/tests/QtWidgets/qtoolbar_test.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.
@@ -28,6 +28,7 @@
'''Test cases for QToolbar'''
+import gc
import os
import sys
import unittest
@@ -58,6 +59,8 @@ class AddActionText(UsesQApplication):
super(AddActionText, self).tearDown()
del self.toolbar
del self.window
+ # PYSIDE-535: Need to collect garbage in PyPy to trigger deletion
+ gc.collect()
def testText(self):
# QToolBar.addAction(text) - add a QToolButton