Skip to content

gh-160881: Fix test_is_python_process_non_python_subprocess with multicall sleep - #160901

Open
thomgree wants to merge 1 commit into
python:mainfrom
thomgree:gh-160881-multicall-sleep
Open

thomgree wants to merge 1 commit into
python:mainfrom
thomgree:gh-160881-multicall-sleep

Conversation

@thomgree

@thomgree thomgree commented Oct 29, 2026 •

Copy link
Copy Markdown

_wait_for_process_exec() waited for /proc/{pid}/exe to be named "sleep", which never happens when sleep is a multicall binary (BusyBox on Alpine, coreutils-single on RHEL UBI9). Wait instead until the child's executable differs from the parent's, which means the child has called exec().

The fix for #159534 (#160028, backported to 3.15 in #160080) makes test_is_python_process_non_python_subprocess fail every time on systems where sleep is provided by a multicall binary. That includes the Alpine buildbots, where the original #159534 failure was found

…h multicall sleep

_wait_for_process_exec() waited for /proc/{pid}/exe to be named "sleep",
which never happens when sleep is a multicall binary (BusyBox on Alpine,
coreutils-single on RHEL UBI9). Wait instead until the child's executable
differs from the parent's, which means the child has called exec().

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@python-cla-bot

python-cla-bot Bot commented Oct 29, 2026 •

Copy link
Copy Markdown

All commit authors signed the Contributor License Agreement.

CLA signed

@bedevere-app

bedevere-app Bot commented Oct 29, 2026

Copy link
Copy Markdown

Most changes to Python require a NEWS entry. Add one using the blurb_it web app or the blurb command-line tool.

If this change has little impact on Python users, wait for a maintainer to apply the skip news label instead.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

awaiting review skip news tests Tests in the Lib/test dir

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants