Skip to content

Commit

Permalink
add missing gc_collect() calls in sqlite3 tests (python#127446)
Browse files Browse the repository at this point in the history
  • Loading branch information
cfbolz authored Dec 2, 2024
1 parent 1f8267b commit 2a373da
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 2a373da

Please sign in to comment.