diff options
author | Hugo van Kemenade <1324225+hugovk@users.noreply.github.com> | 2024-04-08 06:35:48 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-08 06:35:48 (GMT) |
commit | a453f5ef9d0b89bd00488d3814c6f0a2886342b8 (patch) | |
tree | 391c8c60949b336215652eeded2fa7bc677bd2d1 | |
parent | 784623c63c45a4d13dfb04318c39fdb1ab790218 (diff) | |
download | cpython-a453f5ef9d0b89bd00488d3814c6f0a2886342b8.zip cpython-a453f5ef9d0b89bd00488d3814c6f0a2886342b8.tar.gz cpython-a453f5ef9d0b89bd00488d3814c6f0a2886342b8.tar.bz2 |
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.
-rw-r--r-- | Doc/library/sqlite3.rst | 8 |
1 files changed, 8 insertions, 0 deletions
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") |