diff options
author | Petri Lehtinen <petri@digip.org> | 2012-02-17 19:30:55 (GMT) |
---|---|---|
committer | Petri Lehtinen <petri@digip.org> | 2012-02-17 19:31:02 (GMT) |
commit | c86d9e2846e5bcf7f047f96e5c95432ecfa4bcb7 (patch) | |
tree | b1bb4d355af59a6af84284bed7610275317acce2 | |
parent | b3890226b33f86d485dccac309d442b15e766270 (diff) | |
download | cpython-c86d9e2846e5bcf7f047f96e5c95432ecfa4bcb7.zip cpython-c86d9e2846e5bcf7f047f96e5c95432ecfa4bcb7.tar.gz cpython-c86d9e2846e5bcf7f047f96e5c95432ecfa4bcb7.tar.bz2 |
Fix a variable scoping error in an sqlite3 test
Closes #11689.
-rw-r--r-- | Lib/sqlite3/test/hooks.py | 1 | ||||
-rw-r--r-- | Misc/NEWS | 2 |
2 files changed, 3 insertions, 0 deletions
diff --git a/Lib/sqlite3/test/hooks.py b/Lib/sqlite3/test/hooks.py index a6161fa..a92e838 100644 --- a/Lib/sqlite3/test/hooks.py +++ b/Lib/sqlite3/test/hooks.py @@ -168,6 +168,7 @@ class ProgressTests(unittest.TestCase): con = sqlite.connect(":memory:") action = 0 def progress(): + nonlocal action action = 1 return 0 con.set_progress_handler(progress, 1) @@ -477,6 +477,8 @@ Tools/Demos 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. |