diff options
author | sobolevn <mail@sobolevn.me> | 2024-11-01 07:17:05 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-11-01 07:17:05 (GMT) |
commit | 295262c8ecb085b4fea552bc6229af3551bbaf7a (patch) | |
tree | ead50c23bc775815f0b19e92f4e51cc8e0871a10 /Doc | |
parent | 260843df1bd8a28596b9a377d8266e2547f7eedc (diff) | |
download | cpython-295262c8ecb085b4fea552bc6229af3551bbaf7a.zip cpython-295262c8ecb085b4fea552bc6229af3551bbaf7a.tar.gz cpython-295262c8ecb085b4fea552bc6229af3551bbaf7a.tar.bz2 |
gh-126259: Fix "unclosed database" warning in sqlite3 doctest (#126260)
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/library/sqlite3.rst | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Doc/library/sqlite3.rst b/Doc/library/sqlite3.rst index fc03838..096892b 100644 --- a/Doc/library/sqlite3.rst +++ b/Doc/library/sqlite3.rst @@ -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: |