diff options
Diffstat (limited to 'sources/pyside6/tests/QtWidgets/bug_879.py')
-rw-r--r-- | sources/pyside6/tests/QtWidgets/bug_879.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/sources/pyside6/tests/QtWidgets/bug_879.py b/sources/pyside6/tests/QtWidgets/bug_879.py index 4089fa590..8a7b4b184 100644 --- a/sources/pyside6/tests/QtWidgets/bug_879.py +++ b/sources/pyside6/tests/QtWidgets/bug_879.py @@ -39,10 +39,12 @@ from PySide6.QtCore import QCoreApplication, QTimer, QEvent, Qt from PySide6.QtWidgets import QApplication, QSpinBox from PySide6.QtGui import QKeyEvent + class MySpinBox(QSpinBox): - def validate(self,text,pos): - return QSpinBox.validate(self,text,pos) + def validate(self, text, pos): + return QSpinBox.validate(self, text, pos) + class TestBug879 (unittest.TestCase): @@ -61,5 +63,6 @@ class TestBug879 (unittest.TestCase): ev = QKeyEvent(QEvent.KeyPress, Qt.Key_A, Qt.NoModifier, 'a') QCoreApplication.sendEvent(self.box, ev) + if __name__ == '__main__': unittest.main() |