Merge branch '3.2'
Closes #11689.
diff --git a/Lib/sqlite3/test/hooks.py b/Lib/sqlite3/test/hooks.py
index 97abe5f..3dc44f6 100644
--- a/Lib/sqlite3/test/hooks.py
+++ b/Lib/sqlite3/test/hooks.py
@@ -168,6 +168,7 @@
con = sqlite.connect(":memory:")
action = 0
def progress():
+ nonlocal action
action = 1
return 0
con.set_progress_handler(progress, 1)
diff --git a/Misc/NEWS b/Misc/NEWS
index 07ecfc1..10862e4 100644
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -2042,6 +2042,8 @@
Tests
-----
+- Issue #11689: Fix a variable scoping error in an sqlite3 test
+
- Issue #13786: Remove unimplemented 'trace' long option from regrtest.py.
- Issue #13725: Fix regrtest to recognize the documented -d flag.