SIGN IN SIGN UP

[3.13] gh-118846: Fix PGO tests in free-threaded build (GH-118862) (#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 1b1db2fd9a531e26b79b34667bccfb938c4d184d)

Co-authored-by: Sam Gross <colesbury@gmail.com>
M
Miss Islington (bot) committed
d4c6948340463e4da629822394b84921ff48c24f
Parent: 0a23970
Committed by GitHub <noreply@github.com> on 5/9/2024, 8:34:22 PM