]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.14] gh-134248 test_getallocatedblocks pre-check to ignore immortalized strings...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Tue, 3 Jun 2025 16:26:32 +0000 (18:26 +0200)
committerGitHub <noreply@github.com>
Tue, 3 Jun 2025 16:26:32 +0000 (16:26 +0000)
commit81999f157f435bad189aac534911525569d74c3e
tree6cac2bd932c6ae49579d9a04d86e67dd7a4f67a3
parent899cca6dbf76bf3e06a99f60a5f996ad6ba0761f
[3.14] gh-134248 test_getallocatedblocks pre-check to ignore immortalized 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 54ca55978e305ebb099d1b49633211597625bd52)

Co-authored-by: tpburns <trevorpburns@gmail.com>
Lib/test/test_sys.py