]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.14] gh-137093: Fix race condition in `test_embed.test_bpo20891` (GH-137094) (...
authorKumar Aditya <kumaraditya@python.org>
Fri, 24 Oct 2025 07:51:44 +0000 (13:21 +0530)
committerGitHub <noreply@github.com>
Fri, 24 Oct 2025 07:51:44 +0000 (13:21 +0530)
commit6efd78d7ab01c5daf2197c8c9e8f2db046e6d8f1
tree20c9f6f80468e2ab4ad69416ce9e2e54cc156dd7
parent8285bc7ea2a99b571a08eb1d7883eff0c7ca7e1c
[3.14] gh-137093: Fix race condition in `test_embed.test_bpo20891` (GH-137094) (#140524)

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

Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
Programs/_testembed.c