diff options
author | Christian Tismer <tismer@stackless.com> | 2021-08-28 12:49:20 +0200 |
---|---|---|
committer | Christian Tismer <tismer@stackless.com> | 2021-08-30 22:34:19 +0200 |
commit | 9412438ebec18721e1e825e07784821c185544ae (patch) | |
tree | a9ffef36cf02ce7eed7c2c59b6758a8200307b7c /sources/pyside6/tests/QtWidgets/bug_1006.py | |
parent | 1a185feb6779ecdead6ae88f8f44f1d18616b37a (diff) |
PyPySide: Skip all tests which use reference counting
[ChangeLog][PySide6] Tests which use reference counting
need to be skipped in upcoming PyPy builds.
Task-number: PYSIDE-535
Change-Id: I5dca3257d3dc40f53e9b4e4a69e24c07938047c2
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Diffstat (limited to 'sources/pyside6/tests/QtWidgets/bug_1006.py')
-rw-r--r-- | sources/pyside6/tests/QtWidgets/bug_1006.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sources/pyside6/tests/QtWidgets/bug_1006.py b/sources/pyside6/tests/QtWidgets/bug_1006.py index 9a1b7e653..81639c34c 100644 --- a/sources/pyside6/tests/QtWidgets/bug_1006.py +++ b/sources/pyside6/tests/QtWidgets/bug_1006.py @@ -91,6 +91,7 @@ class TestBug1006 (TimedQApplication): item = layout.itemAt(0) self.assertTrue(isinstance(item.widget(), QWidget)) + @unittest.skipUnless(hasattr(sys, "getrefcount"), f"{sys.implementation.name} has no refcount") def testRemoveOrphanWidget(self): widget = QLabel() layout = QHBoxLayout() @@ -101,6 +102,7 @@ class TestBug1006 (TimedQApplication): widget.setObjectName("MyWidget") self.assertEqual(sys.getrefcount(widget), 2) + @unittest.skipUnless(hasattr(sys, "getrefcount"), f"{sys.implementation.name} has no refcount") def testRemoveChildWidget(self): parent = QLabel() widget = QLabel(parent) |