aboutsummaryrefslogtreecommitdiffstats
path: root/sources/pyside6/tests/QtCore/qobject_destructor.py
diff options
context:
space:
mode:
Diffstat (limited to 'sources/pyside6/tests/QtCore/qobject_destructor.py')
-rw-r--r--sources/pyside6/tests/QtCore/qobject_destructor.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/sources/pyside6/tests/QtCore/qobject_destructor.py b/sources/pyside6/tests/QtCore/qobject_destructor.py
index 2354cdfa7..d24017397 100644
--- a/sources/pyside6/tests/QtCore/qobject_destructor.py
+++ b/sources/pyside6/tests/QtCore/qobject_destructor.py
@@ -43,6 +43,7 @@ class MyObject(QObject):
super().__init__(None)
self._o = other
+
class TestDestructor(unittest.TestCase):
def testReference(self):
o = QObject()
@@ -51,5 +52,6 @@ class TestDestructor(unittest.TestCase):
del m
self.assertEqual(sys.getrefcount(o), 2)
+
if __name__ == '__main__':
unittest.main()