https://github.com/python/cpython/commit/2e20a49cae69a11c69baf2e3d405918c98bf8bdb
commit: 2e20a49cae69a11c69baf2e3d405918c98bf8bdb
branch: 3.13
author: Miss Islington (bot) <[email protected]>
committer: erlend-aasland <[email protected]>
date: 2024-11-01T07:23:11Z
summary:

[3.13] gh-126259: Fix "unclosed database" warning in sqlite3 doctest 
(GH-126260) (#126265)

(cherry picked from commit 295262c8ecb085b4fea552bc6229af3551bbaf7a)

Co-authored-by: sobolevn <[email protected]>

files:
M Doc/library/sqlite3.rst

diff --git a/Doc/library/sqlite3.rst b/Doc/library/sqlite3.rst
index 91250c45410597..0d2004497882e2 100644
--- a/Doc/library/sqlite3.rst
+++ b/Doc/library/sqlite3.rst
@@ -2460,6 +2460,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:

_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-checkins.python.org/
Member address: [email protected]

Reply via email to