Skip to content

Commit e9a49c2

Browse files
[3.12] gh-111726: Cleanup test files after running sqlite3 doctest (GH-117604) (#117622)
Remove all temporary databases in a dedicated 'testcleanup' step at the end of the file. (cherry picked from commit a453f5e) Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
1 parent 2449441 commit e9a49c2

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

Doc/library/sqlite3.rst

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2707,3 +2707,11 @@ regardless of the value of :attr:`~Connection.isolation_level`.
27072707

27082708
.. _SQLite transaction behaviour:
27092709
https://www.sqlite.org/lang_transaction.html#deferred_immediate_and_exclusive_transactions
2710+
2711+
.. testcleanup::
2712+
2713+
import os
2714+
os.remove("backup.db")
2715+
os.remove("dump.sql")
2716+
os.remove("example.db")
2717+
os.remove("tutorial.db")

0 commit comments

Comments
 (0)