-
-
Notifications
You must be signed in to change notification settings - Fork 33.4k
GH-141509: Fix warning about remaining subinterpreters #141528
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
GH-141509: Fix warning about remaining subinterpreters #141528
Conversation
ZeroIntensity
left a comment
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.
- This changes a public API, so let's add a news entry.
- Since you didn't need to update any tests, that means that this code path is untested. Please add a test case for leaving subinterpreters unclosed.
|
Tests fail because of #131229 |
|
@ZeroIntensity Could you please take a look? |
Misc/NEWS.d/next/Core_and_Builtins/2025-11-14-00-19-45.gh-issue-141528.VWdax1.rst
Outdated
Show resolved
Hide resolved
…e-141528.VWdax1.rst Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
|
Fixed. Please take a look. |
ZeroIntensity
left a comment
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.
LGTM
|
Thanks! |
Ugh, that seems to fail consistently. I can't merge this until that job passes. |
|
Yeah, I'm looking into it, but without luck yet. |
|
I reran the UBSan job (where test_import was failing). |
|
I did too, but it still failed. It might pass if we rerun it enough times. See #141552 for a skip. |
|
Thanks @sergey-miryanov for the PR, and @ZeroIntensity for merging it 🌮🎉.. I'm working now to backport this PR to: 3.14. |
|
Sorry, @sergey-miryanov and @ZeroIntensity, I could not cleanly backport this to |
|
@sergey-miryanov Could you handle the backport? |
|
@ZeroIntensity Yeah, sure. |
|
GH-141566 is a backport of this pull request to the 3.14 branch. |
…ythonGH-141528) (cherry picked from commit fa245df) Co-authored-by: Sergey Miryanov <sergey.miryanov@gmail.com> Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
Fix warning - suggest using
Interpreter.closeinstead of_interpeters.destroy.@ZeroIntensity Could you please take a look?