Skip to content

Commit 5ff1a80

Browse files
author
Erlend E. Aasland
committed
Document workarounds
1 parent 1e3f589 commit 5ff1a80

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

Lib/sqlite3/test/dbapi.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,7 @@ def test_in_transaction_ro(self):
173173

174174
class OpenTests(unittest.TestCase):
175175
def tearDown(self):
176+
# bpo-42213: ensure that TESTFN is closed before unlinking
176177
import gc
177178
gc.collect()
178179
unlink(TESTFN)

Lib/sqlite3/test/hooks.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -261,6 +261,7 @@ def trace(statement):
261261
cur.execute(queries[1])
262262
self.assertEqual(traced_statements, queries)
263263

264+
# bpo-42213: ensure that TESTFN is closed before the cleanup runs
264265
con1.close()
265266
con2.close()
266267
import gc

0 commit comments

Comments
 (0)