From a453f5ef9d0b89bd00488d3814c6f0a2886342b8 Mon Sep 17 00:00:00 2001 From: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com> Date: Mon, 8 Apr 2024 09:35:48 +0300 Subject: gh-111726: Cleanup test files after running sqlite3 doctest (#117604) Remove all temporary databases in a dedicated 'testcleanup' step at the end of the file. --- Doc/library/sqlite3.rst | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Doc/library/sqlite3.rst b/Doc/library/sqlite3.rst index e76dc91..b17ac19 100644 --- a/Doc/library/sqlite3.rst +++ b/Doc/library/sqlite3.rst @@ -2747,3 +2747,11 @@ regardless of the value of :attr:`~Connection.isolation_level`. .. _SQLite transaction behaviour: https://www.sqlite.org/lang_transaction.html#deferred_immediate_and_exclusive_transactions + +.. testcleanup:: + + import os + os.remove("backup.db") + os.remove("dump.sql") + os.remove("example.db") + os.remove("tutorial.db") -- cgit v0.12