Skip to content

[3.15] gh-159534: Fix race condition in test_sampling_profiler (GH-160028) - #160080

Merged
vstinner merged 1 commit into
python:3.15from
miss-islington:backport-6fd15f0-3.15
Oct 22, 2026
Merged

vstinner merged 1 commit into
python:3.15from
miss-islington:backport-6fd15f0-3.15

Conversation

@miss-islington

@miss-islington miss-islington commented Oct 21, 2026 •

Copy link
Copy Markdown
Contributor

Fix test_is_python_process_non_python_subprocess(). Wait until the
forked Python process calls exec() before calling is_python_process().
Previously, is_python_build() returned True if exec() was not called
yet in the forked process.
(cherry picked from commit 6fd15f0)

Co-authored-by: Victor Stinner vstinner@python.org

…GH-160028)

Fix test_is_python_process_non_python_subprocess(). Wait until the
forked Python process calls exec() before calling is_python_process().
Previously, is_python_build() returned True if exec() was not called
yet in the forked process.
(cherry picked from commit 6fd15f0)

Co-authored-by: Victor Stinner <vstinner@python.org>
@bedevere-app bedevere-app Bot added awaiting review tests Tests in the Lib/test dir labels Oct 21, 2026
@vstinner
vstinner enabled auto-merge (squash) October 21, 2026 17:59
@vstinner
vstinner merged commit 77e7e6b into python:3.15 Oct 22, 2026
98 of 100 checks passed
@miss-islington
miss-islington deleted the backport-6fd15f0-3.15 branch October 22, 2026 11:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

skip news tests Tests in the Lib/test dir

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants