]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.13] gh-118846: Fix PGO tests in free-threaded build (GH-118862) (#118867)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Thu, 9 May 2024 20:34:22 +0000 (22:34 +0200)
committerGitHub <noreply@github.com>
Thu, 9 May 2024 20:34:22 +0000 (20:34 +0000)
commitd4c6948340463e4da629822394b84921ff48c24f
tree8364c359c4c408c5fb312f6a33cb6e37349c6fc0
parent0a23970478a8e10476f4c3095060ef00e07826a2
[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>
Lib/test/test_ordered_dict.py
Lib/test/test_struct.py