aboutsummaryrefslogtreecommitdiffstats
path: root/sources/pyside6/tests/QtUiTools/bug_909.py
diff options
context:
space:
mode:
authorChristian Tismer <tismer@stackless.com>2021-08-28 12:49:20 +0200
committerChristian Tismer <tismer@stackless.com>2021-08-30 22:34:19 +0200
commit9412438ebec18721e1e825e07784821c185544ae (patch)
treea9ffef36cf02ce7eed7c2c59b6758a8200307b7c /sources/pyside6/tests/QtUiTools/bug_909.py
parent1a185feb6779ecdead6ae88f8f44f1d18616b37a (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/QtUiTools/bug_909.py')
-rw-r--r--sources/pyside6/tests/QtUiTools/bug_909.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/sources/pyside6/tests/QtUiTools/bug_909.py b/sources/pyside6/tests/QtUiTools/bug_909.py
index 99c80aa09..be6376735 100644
--- a/sources/pyside6/tests/QtUiTools/bug_909.py
+++ b/sources/pyside6/tests/QtUiTools/bug_909.py
@@ -43,6 +43,7 @@ from helper.usesqapplication import UsesQApplication
class TestDestruction(UsesQApplication):
+ @unittest.skipUnless(hasattr(sys, "getrefcount"), f"{sys.implementation.name} has no refcount")
def testBug909(self):
file = Path(__file__).resolve().parent / 'bug_909.ui'
self.assertTrue(file.is_file())