Skip to content

Commit 295262c

Browse files
authored
gh-126259: Fix "unclosed database" warning in sqlite3 doctest (#126260)
1 parent 260843d commit 295262c

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
@@ -2442,6 +2442,7 @@ Some useful URI tricks include:
24422442
>>> con.execute("CREATE TABLE readonly(data)")
24432443
Traceback (most recent call last):
24442444
OperationalError: attempt to write a readonly database
2445+
>>> con.close()
24452446

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

0 commit comments

Comments
 (0)