We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1e3f589 commit 5ff1a80Copy full SHA for 5ff1a80
Lib/sqlite3/test/dbapi.py
@@ -173,6 +173,7 @@ def test_in_transaction_ro(self):
173
174
class OpenTests(unittest.TestCase):
175
def tearDown(self):
176
+ # bpo-42213: ensure that TESTFN is closed before unlinking
177
import gc
178
gc.collect()
179
unlink(TESTFN)
Lib/sqlite3/test/hooks.py
@@ -261,6 +261,7 @@ def trace(statement):
261
cur.execute(queries[1])
262
self.assertEqual(traced_statements, queries)
263
264
+ # bpo-42213: ensure that TESTFN is closed before the cleanup runs
265
con1.close()
266
con2.close()
267
0 commit comments