Closed as not planned
Description
Bug report
Bug description:
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
CPython versions tested on:
3.13
Operating systems tested on:
Windows