https://github.com/python/cpython/commit/97fd09fba1aa86f77d6fb27c0a37fc10d1655424
commit: 97fd09fba1aa86f77d6fb27c0a37fc10d1655424
branch: 3.12
author: Miss Islington (bot) <[email protected]>
committer: Yhg1s <[email protected]>
date: 2024-12-02T14:57:51+01:00
summary:

[3.12] add missing gc_collect() calls in sqlite3 tests (GH-127446) (#127501)

add missing gc_collect() calls in sqlite3 tests (GH-127446)
(cherry picked from commit 2a373da7700cf928e0a5ce3998d19351a3565df4)

Co-authored-by: CF Bolz-Tereick <[email protected]>

files:
M Lib/test/test_sqlite3/test_regression.py

diff --git a/Lib/test/test_sqlite3/test_regression.py 
b/Lib/test/test_sqlite3/test_regression.py
index 7e8221e7227e6e..6ea47872627133 100644
--- a/Lib/test/test_sqlite3/test_regression.py
+++ b/Lib/test/test_sqlite3/test_regression.py
@@ -442,6 +442,7 @@ def test_table_lock_cursor_dealloc(self):
             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 @@ def dup(v):
             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()
 

_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-checkins.python.org/
Member address: [email protected]

Reply via email to