]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.13] gh-122420: Fix accounting for immortal interned strings in refleak.py (GH...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Tue, 30 Jul 2024 07:36:08 +0000 (09:36 +0200)
committerGitHub <noreply@github.com>
Tue, 30 Jul 2024 07:36:08 +0000 (09:36 +0200)
commita2c36ddd162f8f3fdcf55d97722b5d1fc6c9de18
tree89911355767762a28026b5980196dc13d45ad5cd
parentae1bdcafb85e70659239935c289d41c44da9758e
[3.13] gh-122420: Fix accounting for immortal interned strings in refleak.py (GH-122421) (GH-122430)

The `_PyUnicode_Intern*` functions already adjust the total refcount, so
we don't want to readjust it in refleak.py.
(cherry picked from commit ac8da34621a574cd5773217404757a294025ba49)

Co-authored-by: Sam Gross <colesbury@gmail.com>
Lib/test/libregrtest/refleak.py