summaryrefslogtreecommitdiffstats
path: root/Lib/sqlite3/test/hooks.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/sqlite3/test/hooks.py')
-rw-r--r--Lib/sqlite3/test/hooks.py1
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)