diff options
author | Friedemann Kleint <[email protected]> | 2024-12-13 10:12:30 +0100 |
---|---|---|
committer | Friedemann Kleint <[email protected]> | 2024-12-17 16:37:15 +0100 |
commit | 45548b18a9e73012521a7b16a234e9689da0d9ab (patch) | |
tree | 8f20adad674393e8564e4682bb5d0cc5dd444b26 /sources/pyside6/tests/QtGui | |
parent | dc41b6a9fb736bb0b6e86470c3d3d016fa88711a (diff) |
Fix some flake8 errors in tests/examples
As unearthed by the whitespace change.
Pick-to: 6.8
Change-Id: I58c1a38c3c4a9c91719131d7950950ddf475872b
Reviewed-by: Cristian Maureira-Fredes <[email protected]>
Diffstat (limited to 'sources/pyside6/tests/QtGui')
-rw-r--r-- | sources/pyside6/tests/QtGui/qpen_test.py | 2 | ||||
-rw-r--r-- | sources/pyside6/tests/QtGui/qpixmap_test.py | 2 | ||||
-rw-r--r-- | sources/pyside6/tests/QtGui/qpixmapcache_test.py | 4 | ||||
-rw-r--r-- | sources/pyside6/tests/QtGui/qstandarditemmodel_test.py | 2 |
4 files changed, 5 insertions, 5 deletions
diff --git a/sources/pyside6/tests/QtGui/qpen_test.py b/sources/pyside6/tests/QtGui/qpen_test.py index ae0e14e93..a3328c2e7 100644 --- a/sources/pyside6/tests/QtGui/qpen_test.py +++ b/sources/pyside6/tests/QtGui/qpen_test.py @@ -41,7 +41,7 @@ class QPenTest(UsesQApplication): style = Qt.PenStyle(0) cap = Qt.PenCapStyle(0) join = Qt.PenJoinStyle(0) - pen = QPen(Qt.blue, width, style, cap, join) + pen = QPen(Qt.blue, width, style, cap, join) # noqa: F841 def testSetPenWithPenStyleEnum(self): '''Calls QPainter.setPen with both enum and integer. Bug #511.''' diff --git a/sources/pyside6/tests/QtGui/qpixmap_test.py b/sources/pyside6/tests/QtGui/qpixmap_test.py index fbe670e6e..0dcd71064 100644 --- a/sources/pyside6/tests/QtGui/qpixmap_test.py +++ b/sources/pyside6/tests/QtGui/qpixmap_test.py @@ -28,7 +28,7 @@ class QPixmapTest(UsesQApplication): self.assertTrue(pixmap.size().height(), 20) def testQStringConstructor(self): - pixmap = QPixmap("Testing!") + pixmap = QPixmap("Testing!") # noqa: F841 def testQPixmapLoadFromDataWithQFile(self): f = QFile(os.path.join(os.path.dirname(__file__), 'sample.png')) diff --git a/sources/pyside6/tests/QtGui/qpixmapcache_test.py b/sources/pyside6/tests/QtGui/qpixmapcache_test.py index e18ade7dc..54ad9d7ae 100644 --- a/sources/pyside6/tests/QtGui/qpixmapcache_test.py +++ b/sources/pyside6/tests/QtGui/qpixmapcache_test.py @@ -31,8 +31,8 @@ class QPixmapCacheTest(UsesQApplication): pm3 = QPixmap() ok = QPixmapCache.find('img', pm3) self.assertTrue(ok) - b1 = QPixmapCache.find('img').toImage().bits() - b2 = pm3.toImage().bits() + b1 = QPixmapCache.find('img').toImage().bits() # noqa: F841 + b2 = pm3.toImage().bits() # noqa: F841 self.assertEqual(QPixmapCache.find('img').toImage().bits(), pm3.toImage().bits()) def testWithKey(self): diff --git a/sources/pyside6/tests/QtGui/qstandarditemmodel_test.py b/sources/pyside6/tests/QtGui/qstandarditemmodel_test.py index 123202aa9..683b58256 100644 --- a/sources/pyside6/tests/QtGui/qstandarditemmodel_test.py +++ b/sources/pyside6/tests/QtGui/qstandarditemmodel_test.py @@ -67,7 +67,7 @@ class QStandardItemModelRef(UsesQApplication): for r in range(3): my_row = model.takeRow(0) - my_row = None + my_row = None # noqa: F841 for c in range(5): # only rest 1 reference self.assertEqual(sys.getrefcount(items[r][c]), 2) |