New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
sqlite: Incorrect unit test fails to detect failure #55898
Comments
The CheckClearHandler test in Lib/sqlite3/test/hooks.py is invalid. It sets a local variable in a callback where it wants to change the variable in the closure. Patch attached. |
I've commented on the Rietveld review page - forgive me if I missed something and didn't get the patch meaning right. |
In python 3, declaring the action nonlocal inside the progress function would be more clever :) |
New changeset bf7226719aec by Petri Lehtinen in branch '3.2': New changeset ce023c95db9f by Petri Lehtinen in branch '2.7': New changeset 6b834e3c0882 by Petri Lehtinen in branch 'default': |
Fixed, thanks for the patches! |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: