From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Mon, 2 Dec 2024 14:19:21 +0000 (+0100) Subject: [3.13] add missing gc_collect() calls in sqlite3 tests (GH-127446) (#127500) X-Git-Tag: v3.13.1~11 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=511c588f5d5b9f8eb0e836652ca3ecf86518401e;p=thirdparty%2FPython%2Fcpython.git [3.13] add missing gc_collect() calls in sqlite3 tests (GH-127446) (#127500) add missing gc_collect() calls in sqlite3 tests (GH-127446) (cherry picked from commit 2a373da7700cf928e0a5ce3998d19351a3565df4) Co-authored-by: CF Bolz-Tereick --- diff --git a/Lib/test/test_sqlite3/test_regression.py b/Lib/test/test_sqlite3/test_regression.py index db4e13222da9..50cced3891d1 100644 --- a/Lib/test/test_sqlite3/test_regression.py +++ b/Lib/test/test_sqlite3/test_regression.py @@ -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()