-
-
Notifications
You must be signed in to change notification settings - Fork 32.1k
add missing gc_collect() calls in sqlite3 tests #127446
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add missing gc_collect() calls in sqlite3 tests #127446
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
PyPy needs a
gc_collect()
call after thedel cur
statements 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 <[email protected]>
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 <[email protected]>
GH-127501 is a backport of this pull request to the 3.12 branch. |
…127501) add missing gc_collect() calls in sqlite3 tests (GH-127446) (cherry picked from commit 2a373da) Co-authored-by: CF Bolz-Tereick <[email protected]>
…127500) add missing gc_collect() calls in sqlite3 tests (GH-127446) (cherry picked from commit 2a373da) Co-authored-by: CF Bolz-Tereick <[email protected]>
PyPy needs a
gc_collect()
call after thedel cur
statements for the cursors' finalizers to execute.