mirror of https://github.com/python/cpython
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:
parent
784623c63c
commit
a453f5ef9d
|
@ -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")
|
||||
|
|
Loading…
Reference in New Issue