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
@@ -39,7 +39,6 @@ def testGuiDocSearch_Main(qtbot, monkeypatch, nwGUI, prjLipsum):
search = nwGUI.projSearch
def totalCount():
nonlocal search
res = search.searchResult
return sum(
int(res.topLevelItem(i).text(GuiProjectSearch.C_COUNT).strip("()"))