[3.14] gh-137093: Fix race condition in test_embed.test_bpo20891 (GH-137094)#140524
Merged
kumaraditya303 merged 1 commit intopython:3.14python/cpython:3.14from Oct 24, 2025
kumaraditya303:backport-9b451fb-3.14kumaraditya303/cpython:backport-9b451fb-3.14Copy head branch name to clipboard
Merged
[3.14] gh-137093: Fix race condition in test_embed.test_bpo20891 (GH-137094)#140524kumaraditya303 merged 1 commit intopython:3.14python/cpython:3.14from kumaraditya303:backport-9b451fb-3.14kumaraditya303/cpython:backport-9b451fb-3.14Copy head branch name to clipboard
test_embed.test_bpo20891 (GH-137094)#140524kumaraditya303 merged 1 commit intopython:3.14python/cpython:3.14from
kumaraditya303:backport-9b451fb-3.14kumaraditya303/cpython:backport-9b451fb-3.14Copy head branch name to clipboard
Conversation
…91` (pythonGH-137094) Use a `PyEvent` instead of a lock to fix a race on the free-threaded build. (cherry picked from commit 9b451fb) Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
|
Thanks @kumaraditya303 for the PR 🌮🎉.. I'm working now to backport this PR to: 3.13. |
miss-islington
pushed a commit
to miss-islington/cpython
that referenced
this pull request
Oct 24, 2025
…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>
|
GH-140527 is a backport of this pull request to the 3.13 branch. |
kumaraditya303
added a commit
that referenced
this pull request
Oct 24, 2025
…H-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 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)test_embed.test_bpo20891is racy under free-threading #137093