]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
add missing gc_collect() calls in sqlite3 tests (#127446)
authorCF Bolz-Tereick <cfbolz@gmx.de>
Mon, 2 Dec 2024 10:11:28 +0000 (11:11 +0100)
committerGitHub <noreply@github.com>
Mon, 2 Dec 2024 10:11:28 +0000 (11:11 +0100)
Lib/test/test_sqlite3/test_regression.py

index db4e13222da9da18f40dbdb664c1c16ad15a33eb..50cced3891d13a58fb90c9424af31fcd1d5197e8 100644 (file)
@@ -433,6 +433,7 @@ class RegressionTests(MemoryDatabaseMixin, unittest.TestCase):
             con.commit()
             cur = con.execute("select t from t")
             del cur
+            support.gc_collect()
             con.execute("drop table t")
             con.commit()
 
@@ -448,6 +449,7 @@ class RegressionTests(MemoryDatabaseMixin, unittest.TestCase):
             con.create_function("dup", 1, dup)
             cur = con.execute("select dup(t) from t")
             del cur
+            support.gc_collect()
             con.execute("drop table t")
             con.commit()