]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-134248 test_getallocatedblocks pre-check to ignore immortalized strings (#134871)
authortpburns <trevorpburns@gmail.com>
Tue, 3 Jun 2025 16:00:25 +0000 (12:00 -0400)
committerGitHub <noreply@github.com>
Tue, 3 Jun 2025 16:00:25 +0000 (18:00 +0200)
commit54ca55978e305ebb099d1b49633211597625bd52
tree89457c46071a201dcc2bfea0ebd3ae2a35caa66f
parent3612d8f51741b11f36f8fb0494d79086bac9390a
gh-134248 test_getallocatedblocks pre-check to ignore immortalized strings (#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.
Lib/test/test_sys.py