mirror of https://github.com/python/cpython
gh-126259: Fix "unclosed database" warning in sqlite3 doctest (#126260)
This commit is contained in:
parent
260843df1b
commit
295262c8ec
|
@ -2442,6 +2442,7 @@ Some useful URI tricks include:
|
|||
>>> con.execute("CREATE TABLE readonly(data)")
|
||||
Traceback (most recent call last):
|
||||
OperationalError: attempt to write a readonly database
|
||||
>>> con.close()
|
||||
|
||||
* Do not implicitly create a new database file if it does not already exist;
|
||||
will raise :exc:`~sqlite3.OperationalError` if unable to create a new file:
|
||||
|
|
Loading…
Reference in New Issue