Remove unused nonlocals in tests

This commit is contained in:
Veronica Berglyd Olsen
2025-03-30 22:37:32 +02:00
parent 799b8e24ec
commit d1aa576bfd
3 changed files with 1 additions and 3 deletions
-1
View File
@@ -131,7 +131,6 @@ def testToolWelcome_Open(qtbot, monkeypatch, nwGUI, fncPath):
# Context Menu
def getMenuForPos(pos: QPoint) -> QMenu | None:
nonlocal tabOpen
tabOpen._openContextMenu(pos)
for obj in tabOpen.children():
if isinstance(obj, QMenu) and obj.objectName() == "ContextMenu":