Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit c86d9e2

Browse files
committed
Fix a variable scoping error in an sqlite3 test
Closes #11689.
1 parent b389022 commit c86d9e2

2 files changed

Lines changed: 3 additions & 0 deletions

File tree

Lib/sqlite3/test/hooks.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,7 @@ def CheckClearHandler(self):
168168
con = sqlite.connect(":memory:")
169169
action = 0
170170
def progress():
171+
nonlocal action
171172
action = 1
172173
return 0
173174
con.set_progress_handler(progress, 1)

Misc/NEWS

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -477,6 +477,8 @@ Tools/Demos
477477
Tests
478478
-----
479479

480+
- Issue #11689: Fix a variable scoping error in an sqlite3 test
481+
480482
- Issue #13786: Remove unimplemented 'trace' long option from regrtest.py.
481483

482484
- Issue #13725: Fix regrtest to recognize the documented -d flag.

0 commit comments

Comments
 (0)