8000 [3.13] gh-126259: Fix "unclosed database" warning in sqlite3 doctest … · python/cpython@2e20a49 · GitHub
[go: up one dir, main page]

Skip to content

Commit 2e20a49

Browse files
[3.13] gh-126259: Fix "unclosed database" warning in sqlite3 doctest (GH-126260) (#126265)
(cherry picked from commit 295262c) Co-authored-by: sobolevn <mail@sobolevn.me>
1 parent 256fc55 commit 2e20a49

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Doc/library/sqlite3.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2460,6 +2460,7 @@ Some useful URI tricks include:
24602460
>>> con.execute("CREATE TABLE readonly(data)")
24612461
Traceback (most recent call last):
24622462
OperationalError: attempt to write a readonly database
2463+
>>> con.close()
24632464

24642465
* Do not implicitly create a new database file if it does not already exist;
24652466
will raise :exc:`~sqlite3.OperationalError` if unable to create a new file:

0 commit comments

Comments
 (0)
0