aboutsummaryrefslogtreecommitdiffstats
path: root/sources/pyside6/tests/QtWidgets/bug_525.py
diff options
context:
space:
mode:
Diffstat (limited to 'sources/pyside6/tests/QtWidgets/bug_525.py')
-rw-r--r--sources/pyside6/tests/QtWidgets/bug_525.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/sources/pyside6/tests/QtWidgets/bug_525.py b/sources/pyside6/tests/QtWidgets/bug_525.py
index 573e9bf46..e86c03ba8 100644
--- a/sources/pyside6/tests/QtWidgets/bug_525.py
+++ b/sources/pyside6/tests/QtWidgets/bug_525.py
@@ -38,11 +38,13 @@ init_test_paths(False)
from PySide6.QtWidgets import QApplication
from PySide6.QtWidgets import QMenu
+
class M2(QMenu):
- def __init__(self,parent=None):
+ def __init__(self, parent=None):
super().__init__(parent)
self.setTitle(self.tr("M2"))
+
class TestMenuDerivedClass(unittest.TestCase):
def aboutToShowHandler(self):
pass
@@ -53,5 +55,6 @@ class TestMenuDerivedClass(unittest.TestCase):
# Test if the aboutToShow signal was translated to correct type
m2.aboutToShow.connect(self.aboutToShowHandler)
+
if __name__ == '__main__':
unittest.main()