diff options
| author | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2025-07-28 08:38:59 +0200 |
|---|---|---|
| committer | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2025-07-28 10:18:20 +0200 |
| commit | d787a58720d00eca84e22db2e63000dd87188bf5 (patch) | |
| tree | b7542ebd2a8278d24d2b72bc2adc5c3f09d465d9 /sources/pyside6/tests/QtWidgets/action_clear.py | |
| parent | 6ca6c142885e317ab31fad9715822f60795c0753 (diff) | |
Tests: Fix flake 8 warning F841 local variable is assigned to but never used
Pick-to: 6.9 6.8
Change-Id: Idff689832a68fadf6c4492032df3ed94b9343389
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
Diffstat (limited to 'sources/pyside6/tests/QtWidgets/action_clear.py')
| -rw-r--r-- | sources/pyside6/tests/QtWidgets/action_clear.py | 6 |
1 files changed, 3 insertions, 3 deletions
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() |
