Commit c86d9e28 authored by Petri Lehtinen's avatar Petri Lehtinen

Fix a variable scoping error in an sqlite3 test

Closes #11689.
parent b3890226
...@@ -168,6 +168,7 @@ class ProgressTests(unittest.TestCase): ...@@ -168,6 +168,7 @@ class ProgressTests(unittest.TestCase):
con = sqlite.connect(":memory:") con = sqlite.connect(":memory:")
action = 0 action = 0
def progress(): def progress():
nonlocal action
action = 1 action = 1
return 0 return 0
con.set_progress_handler(progress, 1) con.set_progress_handler(progress, 1)
......
...@@ -477,6 +477,8 @@ Tools/Demos ...@@ -477,6 +477,8 @@ Tools/Demos
Tests Tests
----- -----
- Issue #11689: Fix a variable scoping error in an sqlite3 test
- Issue #13786: Remove unimplemented 'trace' long option from regrtest.py. - Issue #13786: Remove unimplemented 'trace' long option from regrtest.py.
- Issue #13725: Fix regrtest to recognize the documented -d flag. - Issue #13725: Fix regrtest to recognize the documented -d flag.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment