Skip to content

Commit 97fd09f

Browse files
[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 2a373da) Co-authored-by: CF Bolz-Tereick <[email protected]>
1 parent 9295a1d commit 97fd09f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Lib/test/test_sqlite3/test_regression.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -442,6 +442,7 @@ def test_table_lock_cursor_dealloc(self):
442442
con.commit()
443443
cur = con.execute("select t from t")
444444
del cur
445+
support.gc_collect()
445446
con.execute("drop table t")
446447
con.commit()
447448

@@ -457,6 +458,7 @@ def dup(v):
457458
con.create_function("dup", 1, dup)
458459
cur = con.execute("select dup(t) from t")
459460
del cur
461+
support.gc_collect()
460462
con.execute("drop table t")
461463
con.commit()
462464

0 commit comments

Comments
 (0)