Skip to content

gh-150720: Remove '-d 1' in test_script_error_treatment#150736

Merged
pablogsal merged 1 commit into
python:mainfrom
lkollar:tachyon/test-script-error-fix
Jun 2, 2026
Merged

gh-150720: Remove '-d 1' in test_script_error_treatment#150736
pablogsal merged 1 commit into
python:mainfrom
lkollar:tachyon/test-script-error-fix

Conversation

@lkollar
Copy link
Copy Markdown
Contributor

@lkollar lkollar commented Jun 1, 2026

Fix race condition in test_script_error_treatment in test_sampling_profiler. An overloaded system can end up running the subprocess under the test so slowly that it never reaches the point of emitting the error message when the one second duration in the profiler expires. We can just drop the -d 1 argument to let the profiler wait until the target process finishes.

Fix race condition in test_script_error_treatment in
test_sampling_profiler. An overloaded system can end up running the
subprocess under the test so slowly that it never reaches the point of
emitting the error message when the one second duration in the profiler
expires. We can just drop the `-d 1` argument to let the profiler wait
until the target process finishes.
@pablogsal pablogsal added awaiting review needs backport to 3.15 pre-release feature fixes, bugs and security fixes and removed awaiting merge labels Jun 1, 2026
@pablogsal
Copy link
Copy Markdown
Member

Thanks man 🖤🙏

@pablogsal pablogsal enabled auto-merge (squash) June 1, 2026 22:19
@pablogsal pablogsal merged commit f442665 into python:main Jun 2, 2026
65 checks passed
@miss-islington-app
Copy link
Copy Markdown

Thanks @lkollar for the PR, and @pablogsal for merging it 🌮🎉.. I'm working now to backport this PR to: 3.15.
🐍🍒⛏🤖 I'm not a witch! I'm not a witch!

@bedevere-app
Copy link
Copy Markdown

bedevere-app Bot commented Jun 2, 2026

GH-150746 is a backport of this pull request to the 3.15 branch.

@bedevere-app bedevere-app Bot removed the needs backport to 3.15 pre-release feature fixes, bugs and security fixes label Jun 2, 2026
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