Skip to content

Commit 1677668

Browse files
authored
remove unassigned nonlocal declarations (#1113)
failed by pyflakes 3.3.0
1 parent e90b9f7 commit 1677668

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/unit/test_http.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ async def test__Limiter_max_workers(monkeypatch):
9090

9191
async def test_func():
9292
async with limiter:
93-
nonlocal active, calls, hold_flag
93+
nonlocal active, calls
9494
active += 1
9595
calls += 1
9696

@@ -101,7 +101,7 @@ async def test_func():
101101
active -= 1
102102

103103
async def control():
104-
nonlocal active, hold_flag
104+
nonlocal hold_flag
105105

106106
# this value seems large enough to allow test functions to start
107107
# but small enough to not noticeably slow down tests

0 commit comments

Comments
 (0)