Uh oh!
There was an error while loading. Please reload this page.
gh-135552: Add tests that check if weakref for tp_subclasses cleared after finalization - #136304
Conversation
sergey-miryanov
commented
Jul 4, 2025
I believe this PR should skip news |
Uh oh!
There was an error while loading. Please reload this page.
nascheme
commented
Jul 8, 2025
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 |
sergey-miryanov
commented
Jul 8, 2025
@nascheme Thanks for review! Fixed. |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Co-authored-by: Kumar Aditya <kumaraditya@python.org>
sergey-miryanov
commented
Jul 8, 2025
@kumaraditya303 Thanks for review! |
Types are not treated specially, it only matters if the weakref has a callback or not.
Uh oh!
There was an error while loading. Please reload this page.
sergey-miryanov
commented
Aug 8, 2025
Thanks everyone! |
These are tests to ensure behaviour introduced by pythonGH-136189 is working as expected. Co-authored-by: Mikhail Borisov <43937008+fxeqxmulfx@users.noreply.github.com> Co-authored-by: Kumar Aditya <kumaraditya@python.org> Co-authored-by: Neil Schemenauer <nas-github@arctrix.com>
Tests for #136189