diff Lib/sqlite3/test/hooks.py @ 75006:bf7226719aec 3.2

Fix a variable scoping error in an sqlite3 test Closes #11689.
author Petri Lehtinen <petri@digip.org>
date Fri, 17 Feb 2012 21:30:55 +0200
parents 680ad8eed33b
children b8b26feb3e1a 6b834e3c0882
line wrap: on
line diff
--- a/Lib/sqlite3/test/hooks.py	Thu Feb 16 21:39:03 2012 +0200
+++ b/Lib/sqlite3/test/hooks.py	Fri Feb 17 21:30:55 2012 +0200
@@ -168,6 +168,7 @@
         con = sqlite.connect(":memory:")
         action = 0
         def progress():
+            nonlocal action
             action = 1
             return 0
         con.set_progress_handler(progress, 1)