-
-
Notifications
You must be signed in to change notification settings - Fork 32.1k
gh-134248 test_getallocatedblocks pre-check to ignore immortalized strings #134871
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
Conversation
…zed strings When sanity checking against gettotalrefcount we exclude the blocks for immortalized strings since their references are not tracked/reported. This now matches refleak.py's book-keeping using the same functions.
Most changes to Python require a NEWS entry. Add one using the blurb_it web app or the blurb command-line tool. If this change has little impact on Python users, wait for a maintainer to apply the |
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. It makes sense to use sys.getunicodeinternedsize() here.
…zed strings (pythonGH-134871) When sanity checking against gettotalrefcount(), we exclude the blocks for immortalized strings since their references are not tracked/reported. This now matches refleak.py's book-keeping using the same functions. (cherry picked from commit 54ca559) Co-authored-by: tpburns <trevorpburns@gmail.com>
GH-135095 is a backport of this pull request to the 3.14 branch. |
Merged, thank you. |
…ized strings (GH-134871) (#135095) gh-134248 test_getallocatedblocks pre-check to ignore immortalized strings (GH-134871) When sanity checking against gettotalrefcount(), we exclude the blocks for immortalized strings since their references are not tracked/reported. This now matches refleak.py's book-keeping using the same functions. (cherry picked from commit 54ca559) Co-authored-by: tpburns <trevorpburns@gmail.com>
When sanity checking against
gettotalrefcount
we exclude the blocks for immortalized strings since their references are not tracked/reported. This now matchesrefleak.py's
book-keeping using the same functions.--disable-gil
builds #115999.test_sys.SysModuleTest.get_allocated_blocks
test precondition intermittently fails on iOS #130384, I would appreciate guidance on how testing that would work.As such, the current state of the PR is that the check is never skipped - to be be adjusted as needed given CI results and/or feedback.