mirror of
https://github.com/python/cpython.git
synced 2025-08-19 00:00:48 +00:00
[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 2a373da770
)
Co-authored-by: CF Bolz-Tereick <cfbolz@gmx.de>
This commit is contained in:
parent
9295a1d033
commit
97fd09fba1
1 changed files with 2 additions and 0 deletions
|
@ -442,6 +442,7 @@ class RegressionTests(unittest.TestCase):
|
|||
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 @@ class RegressionTests(unittest.TestCase):
|
|||
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()
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue