diff options
author | Friedemann Kleint <[email protected]> | 2021-04-29 11:18:49 +0200 |
---|---|---|
committer | Friedemann Kleint <[email protected]> | 2021-04-29 15:56:58 +0200 |
commit | 6d2af409eedee377b3c2ba0cd8156b9409fabd9d (patch) | |
tree | 660f8fd87f77c1030cf97cc65345b9a941a321e4 /sources/pyside6/tests/QtWidgets/bug_785.py | |
parent | 88fff87519e741a3a999b8c1545834d116859faa (diff) |
Tests: Fix some space-related flake8 warnings
Change-Id: I9b0ad08839bf1246620c557ec304dfa90882907b
Reviewed-by: Christian Tismer <[email protected]>
Diffstat (limited to 'sources/pyside6/tests/QtWidgets/bug_785.py')
-rw-r--r-- | sources/pyside6/tests/QtWidgets/bug_785.py | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/sources/pyside6/tests/QtWidgets/bug_785.py b/sources/pyside6/tests/QtWidgets/bug_785.py index 27b552e3c..019dbc0cb 100644 --- a/sources/pyside6/tests/QtWidgets/bug_785.py +++ b/sources/pyside6/tests/QtWidgets/bug_785.py @@ -38,11 +38,13 @@ init_test_paths(False) from PySide6.QtCore import QItemSelection from PySide6.QtGui import QStandardItemModel, QStandardItem from PySide6.QtWidgets import QApplication + + class Bug324(unittest.TestCase): def testOperators(self): model = QStandardItemModel() for i in range(100): - model.appendRow(QStandardItem("Item: %d"%i)) + model.appendRow(QStandardItem(f"Item: {i}")) first = model.index(0, 0) second = model.index(10, 0) @@ -53,12 +55,13 @@ class Bug324(unittest.TestCase): sel2 = QItemSelection() sel2.select(third, fourth) - sel3 = sel + sel2 #check operator + + sel3 = sel + sel2 # check operator + self.assertEqual(len(sel3), 2) sel4 = sel - sel4 += sel2 #check operator += + sel4 += sel2 # check operator += self.assertEqual(len(sel4), 2) self.assertEqual(sel4, sel3) + if __name__ == "__main__": unittest.main() |