Fix a variable scoping error in an sqlite3 test

Initial patch by Torsten Landschoff.

Closes #11689.
diff --git a/Misc/NEWS b/Misc/NEWS
index 1b1d02c..95e4b86 100644
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -526,6 +526,9 @@
 Tests
 -----
 
+- Issue #11689: Fix a variable scoping error in an sqlite3 test.
+  Initial patch by Torsten Landschoff.
+
 - Issue #13304: Skip test case if user site-packages disabled (-s or
   PYTHONNOUSERSITE).  (Patch by Carl Meyer)