diff options
author | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2021-04-29 11:18:49 +0200 |
---|---|---|
committer | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2021-04-29 15:56:58 +0200 |
commit | 6d2af409eedee377b3c2ba0cd8156b9409fabd9d (patch) | |
tree | 660f8fd87f77c1030cf97cc65345b9a941a321e4 /sources/pyside6/tests/QtPrintSupport | |
parent | 88fff87519e741a3a999b8c1545834d116859faa (diff) |
Tests: Fix some space-related flake8 warnings
Change-Id: I9b0ad08839bf1246620c557ec304dfa90882907b
Reviewed-by: Christian Tismer <tismer@stackless.com>
Diffstat (limited to 'sources/pyside6/tests/QtPrintSupport')
-rw-r--r-- | sources/pyside6/tests/QtPrintSupport/bug_500.py | 1 | ||||
-rw-r--r-- | sources/pyside6/tests/QtPrintSupport/returnquadruplesofnumbers_test.py | 8 |
2 files changed, 7 insertions, 2 deletions
diff --git a/sources/pyside6/tests/QtPrintSupport/bug_500.py b/sources/pyside6/tests/QtPrintSupport/bug_500.py index 51297d659..0e686854d 100644 --- a/sources/pyside6/tests/QtPrintSupport/bug_500.py +++ b/sources/pyside6/tests/QtPrintSupport/bug_500.py @@ -46,5 +46,6 @@ class NeverDiesTest(UsesQApplication): def testIt(self): QPrintDialog() + if __name__ == "__main__": unittest.main() diff --git a/sources/pyside6/tests/QtPrintSupport/returnquadruplesofnumbers_test.py b/sources/pyside6/tests/QtPrintSupport/returnquadruplesofnumbers_test.py index 26b3cf7f8..b96376cde 100644 --- a/sources/pyside6/tests/QtPrintSupport/returnquadruplesofnumbers_test.py +++ b/sources/pyside6/tests/QtPrintSupport/returnquadruplesofnumbers_test.py @@ -41,21 +41,25 @@ from PySide6.QtWidgets import QLayout, QWidget, QGraphicsLayout, QGraphicsLayout from helper.usesqapplication import UsesQApplication + class Layout(QLayout): def __init__(self): super().__init__() + class GraphicsLayout(QGraphicsLayout): def __init__(self): super().__init__() + class GraphicsLayoutItem(QGraphicsLayoutItem): def __init__(self): super().__init__() + class ReturnsQuadruplesOfNumbers(UsesQApplication): def compareTuples(self, ta, tb): - for va,vb in zip(ta, tb): + for va, vb in zip(ta, tb): if round(va) != round(vb): return False return True @@ -82,5 +86,5 @@ class ReturnsQuadruplesOfNumbers(UsesQApplication): if __name__ == "__main__": - unittest.main() + unittest.main() |