Skip to content

Commit 511c588

Browse files
[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 2a373da) Co-authored-by: CF Bolz-Tereick <[email protected]>
1 parent 2d458b1 commit 511c588

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
@@ -433,6 +433,7 @@ def test_table_lock_cursor_dealloc(self):
433433
con.commit()
434434
cur = con.execute("select t from t")
435435
del cur
436+
support.gc_collect()
436437
con.execute("drop table t")
437438
con.commit()
438439

@@ -448,6 +449,7 @@ def dup(v):
448449
con.create_function("dup", 1, dup)
449450
cur = con.execute("select dup(t) from t")
450451
del cur
452+
support.gc_collect()
451453
con.execute("drop table t")
452454
con.commit()
453455

0 commit comments

Comments
 (0)