Skip to content

Commit

Permalink
[3.13] add missing gc_collect() calls in sqlite3 tests (pythonGH-127446
Browse files Browse the repository at this point in the history
…) (python#127500)

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

Co-authored-by: CF Bolz-Tereick <[email protected]>
  • Loading branch information
miss-islington and cfbolz authored Dec 2, 2024
1 parent 2d458b1 commit 511c588
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Lib/test/test_sqlite3/test_regression.py
Original file line number Diff line number Diff line change
Expand Up @@ -433,6 +433,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()

Expand All @@ -448,6 +449,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()

Expand Down

0 comments on commit 511c588

Please sign in to comment.