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 /Lib/sqlite3 | |
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.
Diffstat (limited to 'Lib/sqlite3')
-rw-r--r-- | Lib/sqlite3/test/hooks.py | 1 |
1 files changed, 1 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) |