Remove unused nonlocals in tests
This commit is contained in:
@@ -71,7 +71,7 @@ def testToolBuildSettings_Init(qtbot, nwGUI, projPath, mockRnd):
|
||||
|
||||
@pyqtSlot(BuildSettings)
|
||||
def _testNewSettingsReady(new: BuildSettings):
|
||||
nonlocal build, triggered
|
||||
nonlocal triggered
|
||||
assert new is build
|
||||
triggered = True
|
||||
|
||||
|
||||
@@ -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":
|
||||
|
||||
Reference in New Issue
Block a user