mirror of
https://github.com/python/cpython.git
synced 2026-01-04 14:32:21 +00:00
gh-126259: Fix "unclosed database" warning in sqlite3 doctest (#126260)
This commit is contained in:
parent
260843df1b
commit
295262c8ec
1 changed files with 1 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue