Fix a variable scoping error in an sqlite3 test

Closes #11689.
diff --git a/Misc/NEWS b/Misc/NEWS
index 9c64855..754baab 100644
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -477,6 +477,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.