diff options
Diffstat (limited to 'sources/pyside6/tests/QtWidgets/bug_811.py')
-rw-r--r-- | sources/pyside6/tests/QtWidgets/bug_811.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sources/pyside6/tests/QtWidgets/bug_811.py b/sources/pyside6/tests/QtWidgets/bug_811.py index cde5f2fe9..38fbd652c 100644 --- a/sources/pyside6/tests/QtWidgets/bug_811.py +++ b/sources/pyside6/tests/QtWidgets/bug_811.py @@ -41,11 +41,13 @@ from helper.usesqapplication import UsesQApplication from PySide6.QtGui import QTextBlockUserData, QTextCursor from PySide6.QtWidgets import QTextEdit + class TestUserData(QTextBlockUserData): def __init__(self, data): super().__init__() self.data = data + class TestUserDataRefCount(UsesQApplication): def testRefcount(self): textedit = QTextEdit() @@ -63,5 +65,6 @@ class TestUserDataRefCount(UsesQApplication): del ud, ud2 self.assertEqual(sys.getrefcount(self.udata()), 2) + if __name__ == '__main__': unittest.main() |