]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.13] add missing gc_collect() calls in sqlite3 tests (GH-127446) (#127500)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Mon, 2 Dec 2024 14:19:21 +0000 (15:19 +0100)
committerGitHub <noreply@github.com>
Mon, 2 Dec 2024 14:19:21 +0000 (15:19 +0100)
add missing gc_collect() calls in sqlite3 tests (GH-127446)
(cherry picked from commit 2a373da7700cf928e0a5ce3998d19351a3565df4)

Co-authored-by: CF Bolz-Tereick <cfbolz@gmx.de>
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()