add missing gc_collect() calls in sqlite3 tests#127446
Conversation
erlend-aasland
left a comment
There was a problem hiding this comment.
PyPy needs a
gc_collect()call after thedel curstatements for the cursors' finalizers to execute.
Thanks. I wonder if we should add a short "needed-for-pypy-comment" behind the gc_collect() calls.
It's also needed for all other Python implementations that don't use reference counting (GraalPy, for example). Also CPython is moving in the general direction of having less timely finalization (e.g. with deferred refcounting). So I don't think a comment that this is only for pypy is that helpful. |
|
Thanks @cfbolz for the PR 🌮🎉.. I'm working now to backport this PR to: 3.12, 3.13. |
(cherry picked from commit 2a373da) Co-authored-by: CF Bolz-Tereick <cfbolz@gmx.de>
|
GH-127500 is a backport of this pull request to the 3.13 branch. |
(cherry picked from commit 2a373da) Co-authored-by: CF Bolz-Tereick <cfbolz@gmx.de>
|
GH-127501 is a backport of this pull request to the 3.12 branch. |
PyPy needs a
gc_collect()call after thedel curstatements for the cursors' finalizers to execute.