mirror of
https://github.com/python/cpython.git
synced 2025-09-29 19:56:59 +00:00
[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 a453f5ef9d
)
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
This commit is contained in:
parent
2449441242
commit
e9a49c273e
1 changed files with 8 additions and 0 deletions
|
@ -2707,3 +2707,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")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue