We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
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
import sqlite3 with sqlite3.connect(':memory:') as conn: pass
Run code with "python -Werror myscript.py" to reproduce
The following does not raise a warning:
import sqlite3 conn = sqlite3.connect(':memory:') conn.close()
The bug is not present in python 3.12 since no warnings are raised on unclosed sqlite databases before 3.13
3.13
Windows
The text was updated successfully, but these errors were encountered:
The sqlite3 context manager is not a closing context manager. See the docs for details:
Sorry, something went wrong.
I had no idea, thanks. I've gotten too used to closing context managers I guess.
No branches or pull requests
Uh oh!
There was an error while loading. Please reload this page.
Bug report
Bug description:
Run code with "python -Werror myscript.py" to reproduce
The following does not raise a warning:
The bug is not present in python 3.12 since no warnings are raised on unclosed sqlite databases before 3.13
CPython versions tested on:
3.13
Operating systems tested on:
Windows
The text was updated successfully, but these errors were encountered: