Fix a variable scoping error in an sqlite3 test

Closes #11689.
This commit is contained in:
Petri Lehtinen 2012-02-17 21:30:55 +02:00
parent b3890226b3
commit c86d9e2846
2 changed files with 3 additions and 0 deletions

View File

@ -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)

View File

@ -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.