aboutsummaryrefslogtreecommitdiffstats
path: root/sources/pyside6/tests/QtWidgets/qtextedit_test.py
diff options
context:
space:
mode:
Diffstat (limited to 'sources/pyside6/tests/QtWidgets/qtextedit_test.py')
-rw-r--r--sources/pyside6/tests/QtWidgets/qtextedit_test.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/sources/pyside6/tests/QtWidgets/qtextedit_test.py b/sources/pyside6/tests/QtWidgets/qtextedit_test.py
index 241197f45..28f435f94 100644
--- a/sources/pyside6/tests/QtWidgets/qtextedit_test.py
+++ b/sources/pyside6/tests/QtWidgets/qtextedit_test.py
@@ -42,6 +42,7 @@ from PySide6.QtWidgets import QTextEdit
from helper.usesqapplication import UsesQApplication
+
class DontTouchReference(UsesQApplication):
'''Check if the QTextTable returned by QTextCursor.insertTable() is not
referenced by the QTextCursor that returns it.'''
@@ -64,5 +65,6 @@ class DontTouchReference(UsesQApplication):
self.assertEqual(getrefcount(self.table), 2)
cell = self.table.cellAt(0, 0)
+
if __name__ == "__main__":
unittest.main()