]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.13] gh-137093: Fix race condition in `test_embed.test_bpo20891` (GH-137094) (GH...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Fri, 24 Oct 2025 08:17:26 +0000 (10:17 +0200)
committerGitHub <noreply@github.com>
Fri, 24 Oct 2025 08:17:26 +0000 (13:47 +0530)
commit050b9dda0432f2903c70fa2ff53305976b284e27
tree7791e390022b78f5c109a4d0f07bef45db813b3c
parent1cc2c954d6b56e5341ff4290f0301636e09a4af0
[3.13] gh-137093: Fix race condition in `test_embed.test_bpo20891` (GH-137094) (GH-140524) (#140527)

[3.14] gh-137093: Fix race condition in `test_embed.test_bpo20891` (GH-137094) (GH-140524)

Use a `PyEvent` instead of a lock to fix a race on the free-threaded build.
(cherry picked from commit 9b451fb457a5de9ed535a0e2f41161dfaa9a419a)
(cherry picked from commit 6efd78d7ab01c5daf2197c8c9e8f2db046e6d8f1)

Co-authored-by: Kumar Aditya <kumaraditya@python.org>
Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
Programs/_testembed.c