◐ Shell
clean mode source ↗

gh-118846: Fix PGO tests in free-threaded build by colesbury · Pull Request #118862 · python/cpython

Avoid immortalizing objects in some tests that test behavior of
collecting classes or modules.

This fixes test_ordered_dict and test_struct.

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request

May 9, 2024
Avoid immortalizing objects in tests that verify garbage collection of
classes or modules.

This fixes test_ordered_dict and test_struct.
(cherry picked from commit 1b1db2f)

Co-authored-by: Sam Gross <colesbury@gmail.com>

colesbury added a commit that referenced this pull request

May 9, 2024
…118867)

Avoid immortalizing objects in tests that verify garbage collection of
classes or modules.

This fixes test_ordered_dict and test_struct.
(cherry picked from commit 1b1db2f)

Co-authored-by: Sam Gross <colesbury@gmail.com>

SonicField pushed a commit to SonicField/cpython that referenced this pull request

May 10, 2024
Avoid immortalizing objects in tests that verify garbage collection of
classes or modules.

This fixes test_ordered_dict and test_struct.