aboutsummaryrefslogtreecommitdiffstats
path: root/sources/pyside6/tests
diff options
context:
space:
mode:
Diffstat (limited to 'sources/pyside6/tests')
-rw-r--r--sources/pyside6/tests/QtBluetooth/localdevice.py2
-rw-r--r--sources/pyside6/tests/QtCore/bug_324.py2
-rw-r--r--sources/pyside6/tests/QtCore/bug_706.py2
-rw-r--r--sources/pyside6/tests/QtCore/bug_835.py2
-rw-r--r--sources/pyside6/tests/QtCore/qobject_children_segfault_test.py4
-rw-r--r--sources/pyside6/tests/QtCore/qobject_inherits_test.py2
-rw-r--r--sources/pyside6/tests/QtCore/qproperty_decorator.py2
-rw-r--r--sources/pyside6/tests/QtCore/qrandomgenerator_test.py2
-rw-r--r--sources/pyside6/tests/QtGui/qicon_test.py2
-rw-r--r--sources/pyside6/tests/QtHelp/help_test.py2
-rw-r--r--sources/pyside6/tests/QtMultimediaWidgets/qmultimediawidgets.py2
-rw-r--r--sources/pyside6/tests/QtQml/groupedproperty.py2
-rw-r--r--sources/pyside6/tests/QtQml/registerattached.py2
-rw-r--r--sources/pyside6/tests/QtQml/registerextended.py2
-rw-r--r--sources/pyside6/tests/QtQml/registerparserstatus.py2
-rw-r--r--sources/pyside6/tests/QtQml/registerqmlfile.py2
-rw-r--r--sources/pyside6/tests/QtUiTools/bug_913.py2
-rw-r--r--sources/pyside6/tests/QtWidgets/action_clear.py6
-rw-r--r--sources/pyside6/tests/QtWidgets/bug_243.py2
-rw-r--r--sources/pyside6/tests/QtWidgets/bug_338.py2
-rw-r--r--sources/pyside6/tests/QtWidgets/bug_525.py2
-rw-r--r--sources/pyside6/tests/QtWidgets/bug_546.py2
-rw-r--r--sources/pyside6/tests/QtWidgets/bug_640.py3
-rw-r--r--sources/pyside6/tests/QtWidgets/bug_653.py2
-rw-r--r--sources/pyside6/tests/QtWidgets/bug_668.py2
-rw-r--r--sources/pyside6/tests/QtWidgets/bug_693.py2
-rw-r--r--sources/pyside6/tests/QtWidgets/bug_862.py2
-rw-r--r--sources/pyside6/tests/QtWidgets/bug_967.py2
-rw-r--r--sources/pyside6/tests/QtWidgets/bug_988.py2
-rw-r--r--sources/pyside6/tests/QtWidgets/qapp_test.py2
-rw-r--r--sources/pyside6/tests/QtWidgets/qlistwidgetitem_test.py2
-rw-r--r--sources/pyside6/tests/QtWidgets/qtextedit_test.py2
-rw-r--r--sources/pyside6/tests/pysidetest/signal_tp_descr_get_test.py2
-rw-r--r--sources/pyside6/tests/registry/existence_test.py2
34 files changed, 38 insertions, 37 deletions
diff --git a/sources/pyside6/tests/QtBluetooth/localdevice.py b/sources/pyside6/tests/QtBluetooth/localdevice.py
index 1d49fe52e..40d4ca009 100644
--- a/sources/pyside6/tests/QtBluetooth/localdevice.py
+++ b/sources/pyside6/tests/QtBluetooth/localdevice.py
@@ -19,7 +19,7 @@ from PySide6.QtBluetooth import QBluetoothLocalDevice # noqa: E402
class QBluetoothLocalDeviceTest(unittest.TestCase):
def testInitialization(self):
- device = QBluetoothLocalDevice()
+ device = QBluetoothLocalDevice() # noqa: F841
if __name__ == '__main__':
diff --git a/sources/pyside6/tests/QtCore/bug_324.py b/sources/pyside6/tests/QtCore/bug_324.py
index a93f94089..7420891fb 100644
--- a/sources/pyside6/tests/QtCore/bug_324.py
+++ b/sources/pyside6/tests/QtCore/bug_324.py
@@ -32,7 +32,7 @@ class Bug324(unittest.TestCase):
self.value = val
def testBug(self):
- app = QCoreApplication([])
+ app = QCoreApplication([]) # noqa: F841
bug = QBug()
self.value = ''
bug.done.connect(self.on_done)
diff --git a/sources/pyside6/tests/QtCore/bug_706.py b/sources/pyside6/tests/QtCore/bug_706.py
index 1fa04f77f..c9fc3e0ca 100644
--- a/sources/pyside6/tests/QtCore/bug_706.py
+++ b/sources/pyside6/tests/QtCore/bug_706.py
@@ -29,7 +29,7 @@ class TestBug706(unittest.TestCase):
self.start = None
self.end = None
- app = QCoreApplication([])
+ app = QCoreApplication([]) # noqa: F841
model = MyModel()
model.columnsAboutToBeInserted.connect(self.mySlot)
model.columnsAboutToBeInserted.emit(QModelIndex(), 0, 1)
diff --git a/sources/pyside6/tests/QtCore/bug_835.py b/sources/pyside6/tests/QtCore/bug_835.py
index 6bf4f261e..ecbf0e02d 100644
--- a/sources/pyside6/tests/QtCore/bug_835.py
+++ b/sources/pyside6/tests/QtCore/bug_835.py
@@ -69,7 +69,7 @@ class SetAndGetTestCases(unittest.TestCase):
f.test = 1
set_counter = 0
- ret = f.test
+ ret = f.test # noqa: F841
self.assertEqual(get_counter, 1)
self.assertEqual(set_counter, 0)
diff --git a/sources/pyside6/tests/QtCore/qobject_children_segfault_test.py b/sources/pyside6/tests/QtCore/qobject_children_segfault_test.py
index 4bdd3922b..689e772b0 100644
--- a/sources/pyside6/tests/QtCore/qobject_children_segfault_test.py
+++ b/sources/pyside6/tests/QtCore/qobject_children_segfault_test.py
@@ -27,9 +27,9 @@ class ChildrenCoreApplication(unittest.TestCase):
# 2- Create parent and childrens
# 3- While keeping the children alive, call parent.children()
# 4- Delete parent
- app = QCoreApplication([])
+ app = QCoreApplication([]) # noqa: F841
parent = QObject()
- children = [QObject(parent) for x in range(25)]
+ children = [QObject(parent) for x in range(25)] # noqa: F841
# Uncomment the lines below to make the test pass
# del children
# del child2
diff --git a/sources/pyside6/tests/QtCore/qobject_inherits_test.py b/sources/pyside6/tests/QtCore/qobject_inherits_test.py
index e1121abd7..4dd026fa0 100644
--- a/sources/pyside6/tests/QtCore/qobject_inherits_test.py
+++ b/sources/pyside6/tests/QtCore/qobject_inherits_test.py
@@ -61,7 +61,7 @@ class InheritsCase(unittest.TestCase):
def __init__(self):
self.member = 'member'
super().__init__()
- obj0 = DerivedObject()
+ obj0 = DerivedObject() # noqa: F841
# The second instantiation of DerivedObject will generate an exception
# that will not come to surface immediately.
obj1 = DerivedObject()
diff --git a/sources/pyside6/tests/QtCore/qproperty_decorator.py b/sources/pyside6/tests/QtCore/qproperty_decorator.py
index cc7699f48..e42ce5a7d 100644
--- a/sources/pyside6/tests/QtCore/qproperty_decorator.py
+++ b/sources/pyside6/tests/QtCore/qproperty_decorator.py
@@ -39,7 +39,7 @@ class PropertyTest(unittest.TestCase):
def testDecorator(self):
self._obDestroyed = False
o = MyObject()
- weak = weakref.ref(o, self.destroyCB)
+ weak = weakref.ref(o, self.destroyCB) # noqa: F841
o.value = 10
self.assertEqual(o._value, 10)
self.assertEqual(o.value, 10)
diff --git a/sources/pyside6/tests/QtCore/qrandomgenerator_test.py b/sources/pyside6/tests/QtCore/qrandomgenerator_test.py
index 6ae69b6b3..83b62b5eb 100644
--- a/sources/pyside6/tests/QtCore/qrandomgenerator_test.py
+++ b/sources/pyside6/tests/QtCore/qrandomgenerator_test.py
@@ -27,7 +27,7 @@ class QRandomGeneratorTest(unittest.TestCase):
def testGenerator64(self):
generator = QRandomGenerator64()
- r = generator.generate()
+ r = generator.generate() # noqa: F841
if __name__ == '__main__':
diff --git a/sources/pyside6/tests/QtGui/qicon_test.py b/sources/pyside6/tests/QtGui/qicon_test.py
index ac83ee297..4847935d5 100644
--- a/sources/pyside6/tests/QtGui/qicon_test.py
+++ b/sources/pyside6/tests/QtGui/qicon_test.py
@@ -20,7 +20,7 @@ class QIconCtorWithNoneTest(TimedQGuiApplication):
def testQIconCtorWithNone(self):
icon = QIcon(None)
- pixmap = icon.pixmap(48, 48)
+ pixmap = icon.pixmap(48, 48) # noqa: F841
self.app.exec()
diff --git a/sources/pyside6/tests/QtHelp/help_test.py b/sources/pyside6/tests/QtHelp/help_test.py
index 9e5c879da..ea121d6a3 100644
--- a/sources/pyside6/tests/QtHelp/help_test.py
+++ b/sources/pyside6/tests/QtHelp/help_test.py
@@ -19,7 +19,7 @@ from helper.usesqapplication import UsesQApplication
class QHelpEngineCreation(UsesQApplication):
def testConstructor(self):
- helpEngine = QHelpEngine('mycollection.qch')
+ helpEngine = QHelpEngine('mycollection.qch') # noqa: F841
if __name__ == '__main__':
diff --git a/sources/pyside6/tests/QtMultimediaWidgets/qmultimediawidgets.py b/sources/pyside6/tests/QtMultimediaWidgets/qmultimediawidgets.py
index bb5728054..805ae49c3 100644
--- a/sources/pyside6/tests/QtMultimediaWidgets/qmultimediawidgets.py
+++ b/sources/pyside6/tests/QtMultimediaWidgets/qmultimediawidgets.py
@@ -37,7 +37,7 @@ class QMultimediaWidgetsTest(UsesQApplication):
w = MyWidget()
w.show()
- timer = QTimer.singleShot(100, self.app.quit)
+ timer = QTimer.singleShot(100, self.app.quit) # noqa: F841
self.app.exec()
diff --git a/sources/pyside6/tests/QtQml/groupedproperty.py b/sources/pyside6/tests/QtQml/groupedproperty.py
index 3b220370b..dcd6c92af 100644
--- a/sources/pyside6/tests/QtQml/groupedproperty.py
+++ b/sources/pyside6/tests/QtQml/groupedproperty.py
@@ -85,7 +85,7 @@ def component_error(component):
class TestQmlGroupedProperties(unittest.TestCase):
def testIt(self):
- app = QCoreApplication(sys.argv)
+ app = QCoreApplication(sys.argv) # noqa: F841
file = Path(__file__).resolve().parent / "groupedproperty.qml"
url = QUrl.fromLocalFile(file)
engine = QQmlEngine()
diff --git a/sources/pyside6/tests/QtQml/registerattached.py b/sources/pyside6/tests/QtQml/registerattached.py
index efea1f9ca..81161e585 100644
--- a/sources/pyside6/tests/QtQml/registerattached.py
+++ b/sources/pyside6/tests/QtQml/registerattached.py
@@ -82,7 +82,7 @@ class TestLayout(QObject):
class TestQmlAttached(unittest.TestCase):
def testIt(self):
- app = QCoreApplication(sys.argv)
+ app = QCoreApplication(sys.argv) # noqa: F841
file = Path(__file__).resolve().parent / 'registerattached.qml'
url = QUrl.fromLocalFile(file)
engine = QQmlEngine()
diff --git a/sources/pyside6/tests/QtQml/registerextended.py b/sources/pyside6/tests/QtQml/registerextended.py
index 4d755d6ad..920b638db 100644
--- a/sources/pyside6/tests/QtQml/registerextended.py
+++ b/sources/pyside6/tests/QtQml/registerextended.py
@@ -59,7 +59,7 @@ class TestWidget(QObject):
class TestQmlExtended(unittest.TestCase):
def testIt(self):
- app = QCoreApplication(sys.argv)
+ app = QCoreApplication(sys.argv) # noqa: F841
file = Path(__file__).resolve().parent / 'registerextended.qml'
url = QUrl.fromLocalFile(file)
engine = QQmlEngine()
diff --git a/sources/pyside6/tests/QtQml/registerparserstatus.py b/sources/pyside6/tests/QtQml/registerparserstatus.py
index 6da571d30..21f1720aa 100644
--- a/sources/pyside6/tests/QtQml/registerparserstatus.py
+++ b/sources/pyside6/tests/QtQml/registerparserstatus.py
@@ -46,7 +46,7 @@ class TestItem(QPyQmlParserStatus):
class TestQmlAttached(unittest.TestCase):
def testIt(self):
- app = QCoreApplication(sys.argv)
+ app = QCoreApplication(sys.argv) # noqa: F841
file = Path(__file__).resolve().parent / 'registerparserstatus.qml'
url = QUrl.fromLocalFile(file)
engine = QQmlEngine()
diff --git a/sources/pyside6/tests/QtQml/registerqmlfile.py b/sources/pyside6/tests/QtQml/registerqmlfile.py
index 77f1ef20f..18901df9d 100644
--- a/sources/pyside6/tests/QtQml/registerqmlfile.py
+++ b/sources/pyside6/tests/QtQml/registerqmlfile.py
@@ -19,7 +19,7 @@ from PySide6.QtQml import qmlRegisterType # noqa: E402
class TestQmlSupport(unittest.TestCase):
def testIt(self):
- app = QGuiApplication([])
+ app = QGuiApplication([]) # noqa: F841
file = os.fspath(Path(__file__).resolve().parent / 'ModuleType.qml')
url = QUrl.fromLocalFile(QDir.fromNativeSeparators(file))
diff --git a/sources/pyside6/tests/QtUiTools/bug_913.py b/sources/pyside6/tests/QtUiTools/bug_913.py
index 47cbfd706..85d38b893 100644
--- a/sources/pyside6/tests/QtUiTools/bug_913.py
+++ b/sources/pyside6/tests/QtUiTools/bug_913.py
@@ -19,7 +19,7 @@ from PySide6.QtUiTools import QUiLoader
class TestBug913 (unittest.TestCase):
def testIt(self):
- app = QApplication([])
+ app = QApplication([]) # noqa: F841
loader = QUiLoader()
file = Path(__file__).resolve().parent / 'bug_913.ui'
diff --git a/sources/pyside6/tests/QtWidgets/action_clear.py b/sources/pyside6/tests/QtWidgets/action_clear.py
index 1b68b0105..2c09f8665 100644
--- a/sources/pyside6/tests/QtWidgets/action_clear.py
+++ b/sources/pyside6/tests/QtWidgets/action_clear.py
@@ -26,7 +26,7 @@ class TestQActionLifeCycle(UsesQApplication):
w = QWidget()
menu = QMenu(w)
act = menu.addAction("MENU")
- _ref = weakref.ref(act, self.actionDestroyed)
+ _ref = weakref.ref(act, self.actionDestroyed) # noqa: F841
act = None
self.assertFalse(self._actionDestroyed)
menu.clear()
@@ -39,7 +39,7 @@ class TestQActionLifeCycle(UsesQApplication):
w = QWidget()
menuBar = QMenuBar(w)
act = menuBar.addAction("MENU")
- _ref = weakref.ref(act, self.actionDestroyed)
+ _ref = weakref.ref(act, self.actionDestroyed) # noqa: F841
act = None
# PYSIDE-535: Need to collect garbage in PyPy to trigger deletion
gc.collect()
@@ -54,7 +54,7 @@ class TestQActionLifeCycle(UsesQApplication):
w = QWidget()
toolBar = QToolBar(w)
act = toolBar.addAction("MENU")
- _ref = weakref.ref(act, self.actionDestroyed)
+ _ref = weakref.ref(act, self.actionDestroyed) # noqa: F841
act = None
# PYSIDE-535: Need to collect garbage in PyPy to trigger deletion
gc.collect()
diff --git a/sources/pyside6/tests/QtWidgets/bug_243.py b/sources/pyside6/tests/QtWidgets/bug_243.py
index 7987be96e..533dfc450 100644
--- a/sources/pyside6/tests/QtWidgets/bug_243.py
+++ b/sources/pyside6/tests/QtWidgets/bug_243.py
@@ -19,7 +19,7 @@ from PySide6.QtWidgets import QApplication, QMainWindow, QLayout
class QAppPresence(unittest.TestCase):
def testBug(self):
- app = QApplication(sys.argv)
+ app = QApplication(sys.argv) # noqa: F841
window = QMainWindow()
l = window.layout()
self.assertTrue(isinstance(l, QLayout))
diff --git a/sources/pyside6/tests/QtWidgets/bug_338.py b/sources/pyside6/tests/QtWidgets/bug_338.py
index 463c20527..3cdd64787 100644
--- a/sources/pyside6/tests/QtWidgets/bug_338.py
+++ b/sources/pyside6/tests/QtWidgets/bug_338.py
@@ -26,7 +26,7 @@ class DiagramItem(QGraphicsPolygonItem):
class BugTest(unittest.TestCase):
def test(self):
- app = QApplication(sys.argv)
+ app = QApplication(sys.argv) # noqa: F841
scene = QGraphicsScene()
item = DiagramItem()
item2 = DiagramItem()
diff --git a/sources/pyside6/tests/QtWidgets/bug_525.py b/sources/pyside6/tests/QtWidgets/bug_525.py
index 7775ed1b6..81cee86d1 100644
--- a/sources/pyside6/tests/QtWidgets/bug_525.py
+++ b/sources/pyside6/tests/QtWidgets/bug_525.py
@@ -26,7 +26,7 @@ class TestMenuDerivedClass(unittest.TestCase):
pass
def testConnectSignal(self):
- app = QApplication([])
+ app = QApplication([]) # noqa: F841
m2 = M2()
# Test if the aboutToShow signal was translated to correct type
m2.aboutToShow.connect(self.aboutToShowHandler)
diff --git a/sources/pyside6/tests/QtWidgets/bug_546.py b/sources/pyside6/tests/QtWidgets/bug_546.py
index c5e054c3f..9bcd9d40c 100644
--- a/sources/pyside6/tests/QtWidgets/bug_546.py
+++ b/sources/pyside6/tests/QtWidgets/bug_546.py
@@ -18,7 +18,7 @@ class TestBug546(unittest.TestCase):
"""Test to check a crash at exit"""
def testIt(self):
- app = QApplication([])
+ app = QApplication([]) # noqa: F841
textEdit = QPlainTextEdit()
completer = QCompleter(("foo", "bar"), textEdit)
completer.setWidget(textEdit)
diff --git a/sources/pyside6/tests/QtWidgets/bug_640.py b/sources/pyside6/tests/QtWidgets/bug_640.py
index c3e0ed83a..aa7153df2 100644
--- a/sources/pyside6/tests/QtWidgets/bug_640.py
+++ b/sources/pyside6/tests/QtWidgets/bug_640.py
@@ -15,9 +15,10 @@ from PySide6.QtWidgets import QStyleOptionGraphicsItem
class Bug640(unittest.TestCase):
+ """crash!?"""
def testIt(self):
option = QStyleOptionGraphicsItem()
- a = option.state # crash!?
+ a = option.state # noqa: F841
if __name__ == "__main__":
diff --git a/sources/pyside6/tests/QtWidgets/bug_653.py b/sources/pyside6/tests/QtWidgets/bug_653.py
index 370e9474b..38ab0c8a6 100644
--- a/sources/pyside6/tests/QtWidgets/bug_653.py
+++ b/sources/pyside6/tests/QtWidgets/bug_653.py
@@ -17,7 +17,7 @@ from PySide6.QtWidgets import QApplication, QWizard, QWizardPage
class TestBug653(unittest.TestCase):
"""Crash after calling QWizardPage.wizard()"""
def testIt(self):
- app = QApplication([])
+ app = QApplication([]) # noqa: F841
wizard = QWizard()
page = QWizardPage()
diff --git a/sources/pyside6/tests/QtWidgets/bug_668.py b/sources/pyside6/tests/QtWidgets/bug_668.py
index 0b2de8f04..fba0789ca 100644
--- a/sources/pyside6/tests/QtWidgets/bug_668.py
+++ b/sources/pyside6/tests/QtWidgets/bug_668.py
@@ -25,7 +25,7 @@ class A(QMainWindow):
v.setModel(a)
self.setCentralWidget(v)
# Test index() method (see PYSIDE-570, PYSIDE-331)
- index = a.index(0, 0, QModelIndex())
+ index = a.index(0, 0, QModelIndex()) # noqa: F841
app = QApplication([])
diff --git a/sources/pyside6/tests/QtWidgets/bug_693.py b/sources/pyside6/tests/QtWidgets/bug_693.py
index 23dd752ad..8a2991c6f 100644
--- a/sources/pyside6/tests/QtWidgets/bug_693.py
+++ b/sources/pyside6/tests/QtWidgets/bug_693.py
@@ -28,7 +28,7 @@ class MyModel (QAbstractListModel):
class TestBug693(unittest.TestCase):
def testIt(self):
- app = QApplication([])
+ app = QApplication([]) # noqa: F841
model = MyModel()
view = QListView()
view.setModel(model)
diff --git a/sources/pyside6/tests/QtWidgets/bug_862.py b/sources/pyside6/tests/QtWidgets/bug_862.py
index eb2c58711..c4fe13541 100644
--- a/sources/pyside6/tests/QtWidgets/bug_862.py
+++ b/sources/pyside6/tests/QtWidgets/bug_862.py
@@ -62,7 +62,7 @@ class TestRepr (unittest.TestCase):
def testIt(self):
- app = QApplication([])
+ app = QApplication([]) # noqa: F841
self.assertEqual("<__main__.MyQObject(0x", repr(MyQObject())[:22])
self.assertEqual("<__main__.MyQWidget(0x", repr(MyQWidget())[:22])
diff --git a/sources/pyside6/tests/QtWidgets/bug_967.py b/sources/pyside6/tests/QtWidgets/bug_967.py
index d254f2877..0923e5d1a 100644
--- a/sources/pyside6/tests/QtWidgets/bug_967.py
+++ b/sources/pyside6/tests/QtWidgets/bug_967.py
@@ -21,7 +21,7 @@ class TestBug967 (unittest.TestCase):
def testIt(self):
self.arg = None
- app = QApplication([])
+ app = QApplication([]) # noqa: F841
obj = QComboBox()
obj.currentIndexChanged.connect(self.callback)
obj.currentIndexChanged.emit(5)
diff --git a/sources/pyside6/tests/QtWidgets/bug_988.py b/sources/pyside6/tests/QtWidgets/bug_988.py
index 0fd582206..19aa29809 100644
--- a/sources/pyside6/tests/QtWidgets/bug_988.py
+++ b/sources/pyside6/tests/QtWidgets/bug_988.py
@@ -21,7 +21,7 @@ class TestBug988 (unittest.TestCase):
def testIt(self):
self.arg = None
- app = QApplication([])
+ app = QApplication([]) # noqa: F841
obj = QTabWidget()
obj.currentChanged.connect(self.callback)
obj.currentChanged.emit(5)
diff --git a/sources/pyside6/tests/QtWidgets/qapp_test.py b/sources/pyside6/tests/QtWidgets/qapp_test.py
index 86e7c60dd..0ac155706 100644
--- a/sources/pyside6/tests/QtWidgets/qapp_test.py
+++ b/sources/pyside6/tests/QtWidgets/qapp_test.py
@@ -24,7 +24,7 @@ class QAppPresence(unittest.TestCase):
def main():
- app = QApplication([])
+ app = QApplication([]) # noqa: F841
unittest.main()
diff --git a/sources/pyside6/tests/QtWidgets/qlistwidgetitem_test.py b/sources/pyside6/tests/QtWidgets/qlistwidgetitem_test.py
index 9bfc81d65..0608b708a 100644
--- a/sources/pyside6/tests/QtWidgets/qlistwidgetitem_test.py
+++ b/sources/pyside6/tests/QtWidgets/qlistwidgetitem_test.py
@@ -36,7 +36,7 @@ class QListWidgetItemConstructor(UsesQApplication):
def testConstructorWithNone(self):
# Bug 452 - QListWidgetItem() not casting NoneType to null correctly.
- item = QListWidgetItem(None, 123)
+ item = QListWidgetItem(None, 123) # noqa: F841
if __name__ == '__main__':
diff --git a/sources/pyside6/tests/QtWidgets/qtextedit_test.py b/sources/pyside6/tests/QtWidgets/qtextedit_test.py
index 9cfc526c1..a8d80d6f0 100644
--- a/sources/pyside6/tests/QtWidgets/qtextedit_test.py
+++ b/sources/pyside6/tests/QtWidgets/qtextedit_test.py
@@ -39,7 +39,7 @@ class DontTouchReference(UsesQApplication):
# C++ object already deleted." when accessing the QTextTable
del self.cursor
self.assertEqual(sys.getrefcount(self.table), 2)
- cell = self.table.cellAt(0, 0)
+ cell = self.table.cellAt(0, 0) # noqa: F841
if __name__ == "__main__":
diff --git a/sources/pyside6/tests/pysidetest/signal_tp_descr_get_test.py b/sources/pyside6/tests/pysidetest/signal_tp_descr_get_test.py
index 2253572b0..e9be966c3 100644
--- a/sources/pyside6/tests/pysidetest/signal_tp_descr_get_test.py
+++ b/sources/pyside6/tests/pysidetest/signal_tp_descr_get_test.py
@@ -34,7 +34,7 @@ def emit_upon_success(signal):
def f_(f):
def f__(self):
result = f(self)
- s = signal.__get__(self)
+ s = signal.__get__(self) # noqa: F841
print(result)
return result
return f__
diff --git a/sources/pyside6/tests/registry/existence_test.py b/sources/pyside6/tests/registry/existence_test.py
index 2ad4c5b1b..a402dca2b 100644
--- a/sources/pyside6/tests/registry/existence_test.py
+++ b/sources/pyside6/tests/registry/existence_test.py
@@ -92,7 +92,7 @@ class TestUnrecognizedOffending(unittest.TestCase):
"""
def test_signatures_recognized(self):
with isolate_warnings():
- found_sigs = enum_all()
+ found_sigs = enum_all() # noqa: F841
if check_warnings():
raise RuntimeError("There are errors, see above.")