Skip to content

Commit

Permalink
[3.13] pythongh-126259: Fix "unclosed database" warning in sqlite3 do…
Browse files Browse the repository at this point in the history
…ctest (pythonGH-126260) (python#126265)

(cherry picked from commit 295262c)

Co-authored-by: sobolevn <mail@sobolevn.me>
  • Loading branch information
miss-islington and sobolevn authored Nov 1, 2024
1 parent 256fc55 commit 2e20a49
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Doc/library/sqlite3.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 2e20a49

Please sign in to comment.