]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.13] gh-118846: Fix free-threading test failures when run sequentially (GH-118864...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Fri, 10 May 2024 20:50:59 +0000 (22:50 +0200)
committerGitHub <noreply@github.com>
Fri, 10 May 2024 20:50:59 +0000 (20:50 +0000)
commitcceb758c788adb51ca1660e9d49410c2347feadc
tree1021c5c2a1f72b735988f614b9e7b3d545800646
parentb3074f0d5ec4ead75ecce10bf7b7a1459cbf892e
[3.13] gh-118846: Fix free-threading test failures when run sequentially (GH-118864) (#118927)

The free-threaded build currently immortalizes some objects once the
first thread is started. This can lead to test failures depending on the
order in which tests are run. This PR addresses those failures by
suppressing immortalization or skipping the affected tests.
(cherry picked from commit b309c8ebff011f27012367b046ff92eecbdd68a5)

Co-authored-by: Sam Gross <colesbury@gmail.com>
Lib/test/seq_tests.py
Lib/test/test_capi/test_misc.py
Lib/test/test_descr.py
Lib/test/test_gc.py
Lib/test/test_inspect/test_inspect.py
Lib/test/test_module/__init__.py
Lib/test/test_trace.py
Lib/test/test_zoneinfo/test_zoneinfo.py