gh-126259: Fix "unclosed database" warning in sqlite3 doctest (#126260)

This commit is contained in:
sobolevn 2024-11-01 10:17:05 +03:00 committed by GitHub
parent 260843df1b
commit 295262c8ec
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 0 deletions

View File

@ -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: