]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.12] add missing gc_collect() calls in sqlite3 tests (GH-127446) (#127501)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Mon, 2 Dec 2024 13:57:51 +0000 (14:57 +0100)
committerGitHub <noreply@github.com>
Mon, 2 Dec 2024 13:57:51 +0000 (14:57 +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 7e8221e7227e6e0435ef800410bc31e777ad7c96..6ea4787262713365a2a762f7c9b2ca592fd8b47f 100644 (file)
@@ -442,6 +442,7 @@ class RegressionTests(unittest.TestCase):
             con.commit()
             cur = con.execute("select t from t")
             del cur
+            support.gc_collect()
             con.execute("drop table t")
             con.commit()
 
@@ -457,6 +458,7 @@ class RegressionTests(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()