https://github.com/python/cpython/commit/e9a49c273e54e5efcb577ccb93d061de6d920e28
commit: e9a49c273e54e5efcb577ccb93d061de6d920e28
branch: 3.12
author: Miss Islington (bot) <[email protected]>
committer: erlend-aasland <[email protected]>
date: 2024-04-08T06:42:42Z
summary:

[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 a453f5ef9d0b89bd00488d3814c6f0a2886342b8)

Co-authored-by: Hugo van Kemenade <[email protected]>

files:
M Doc/library/sqlite3.rst

diff --git a/Doc/library/sqlite3.rst b/Doc/library/sqlite3.rst
index 4c71e5202f73fb..541eb95094fefa 100644
--- a/Doc/library/sqlite3.rst
+++ b/Doc/library/sqlite3.rst
@@ -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")

_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-checkins.python.org/
Member address: [email protected]

Reply via email to