aboutsummaryrefslogtreecommitdiffstats
path: root/sources/pyside6/tests/QtCore/bug_505.py
diff options
context:
space:
mode:
Diffstat (limited to 'sources/pyside6/tests/QtCore/bug_505.py')
-rw-r--r--sources/pyside6/tests/QtCore/bug_505.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/sources/pyside6/tests/QtCore/bug_505.py b/sources/pyside6/tests/QtCore/bug_505.py
index 5b3fba93d..a00973fea 100644
--- a/sources/pyside6/tests/QtCore/bug_505.py
+++ b/sources/pyside6/tests/QtCore/bug_505.py
@@ -37,6 +37,7 @@ init_test_paths(False)
from PySide6.QtCore import QObject
+
class MyBaseObject(QObject):
def __init__(self, parent=None):
QObject.__init__(self, parent)
@@ -46,6 +47,7 @@ class MyBaseObject(QObject):
if self.objectName() != "PySide":
raise NameError('Fail')
+
class CheckForEventsTypes(unittest.TestCase):
def testDelObject(self):
p = MyBaseObject()
@@ -53,5 +55,6 @@ class CheckForEventsTypes(unittest.TestCase):
del o
del p
+
if __name__ == '__main__':
unittest.main()