Skip to content

Commit a453f5e

Browse files
authored
pythongh-111726: Cleanup test files after running sqlite3 doctest (python#117604)
Remove all temporary databases in a dedicated 'testcleanup' step at the end of the file.
1 parent 784623c commit a453f5e

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
@@ -2747,3 +2747,11 @@ regardless of the value of :attr:`~Connection.isolation_level`.
27472747

27482748
.. _SQLite transaction behaviour:
27492749
https://www.sqlite.org/lang_transaction.html#deferred_immediate_and_exclusive_transactions
2750+
2751+
.. testcleanup::
2752+
2753+
import os
2754+
os.remove("backup.db")
2755+
os.remove("dump.sql")
2756+
os.remove("example.db")
2757+
os.remove("tutorial.db")

0 commit comments

Comments
 (0)