[3.13] gh-137093: Fix race condition in test_embed.test_bpo20891 (GH-137094) (GH-140524)#140527
Merged
kumaraditya303 merged 1 commit intopython:3.13python/cpython:3.13from Oct 24, 2025
miss-islington:backport-6efd78d-3.13miss-islington/cpython:backport-6efd78d-3.13Copy head branch name to clipboard
Merged
[3.13] gh-137093: Fix race condition in test_embed.test_bpo20891 (GH-137094) (GH-140524)#140527kumaraditya303 merged 1 commit intopython:3.13python/cpython:3.13from miss-islington:backport-6efd78d-3.13miss-islington/cpython:backport-6efd78d-3.13Copy head branch name to clipboard
test_embed.test_bpo20891 (GH-137094) (GH-140524)#140527kumaraditya303 merged 1 commit intopython:3.13python/cpython:3.13from
miss-islington:backport-6efd78d-3.13miss-islington/cpython:backport-6efd78d-3.13Copy head branch name to clipboard
Conversation
…91` (pythonGH-137094) (pythonGH-140524) Use a `PyEvent` instead of a lock to fix a race on the free-threaded build. (cherry picked from commit 9b451fb) (cherry picked from commit 6efd78d) Co-authored-by: Kumar Aditya <kumaraditya@python.org> Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Use a
PyEventinstead of a lock to fix a race on the free-threaded build.(cherry picked from commit 9b451fb)
(cherry picked from commit 6efd78d)
Co-authored-by: Kumar Aditya kumaraditya@python.org
Co-authored-by: Peter Bierma zintensitydev@gmail.com
test_embed.test_bpo20891is racy under free-threading #137093