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.
This commit is contained in:
Hugo van Kemenade 2024-04-08 09:35:48 +03:00 committed by GitHub
parent 784623c63c
commit a453f5ef9d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 8 additions and 0 deletions

View File

@ -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")