-
-
Notifications
You must be signed in to change notification settings - Fork 32.3k
gh-135552: Add tests that check if weakref for tp_subclasses cleared after finalization #136304
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
base: main
Are you sure you want to change the base?
gh-135552: Add tests that check if weakref for tp_subclasses cleared after finalization #136304
Conversation
I believe this PR should skip news |
This looks okay to me. Some suggested improvements. The new test might fit better into I don't think it's required to run these in a separate Python process. That makes the test run slower and it's not supposed to crash. Generally a separate process is used for the tests that exercise the interpreter shutdown logic and we are not testing that. So you could just do:
I find the variable naming a bit esoteric. I would have just called them |
@nascheme Thanks for review! Fixed. |
Co-authored-by: Kumar Aditya <[email protected]>
@kumaraditya303 Thanks for review! |
Tests for #136189