Skip to content

gh-158975: Replace fixed sleeps in multiprocessing tests - #158977

Merged
nascheme merged 1 commit into
python:mainfrom
nascheme:gh-158975-multiprocessing-test-sync
Oct 28, 2026
Merged

nascheme merged 1 commit into
python:mainfrom
nascheme:gh-158975-multiprocessing-test-sync

Conversation

@nascheme

@nascheme nascheme commented Oct 7, 2026 •

Copy link
Copy Markdown
Member

Replace fixed sleeps used for synchronization in multiprocessing tests with bounded waits to avoid failures on slow or overloaded systems. Ensure pool cleanup runs even when assertions fail in the imap buffer tests.

Replace fixed sleeps used for synchronization in multiprocessing tests
with bounded waits to avoid failures on slow or overloaded systems.
Ensure pool cleanup runs even when assertions fail in the imap buffer
tests.
@nascheme

Copy link
Copy Markdown
Member Author

@gpshead friendly ping, I do believe this makes the tests more reliable, always a good thing.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

FWIW I tend not to bother with a NEWS entry for test-only changes.

@gpshead gpshead added skip news needs backport to 3.15 bugs and security fixes labels Oct 28, 2026
@nascheme
nascheme merged commit 75d96f8 into python:main Oct 28, 2026
64 checks passed
@miss-islington-app

Copy link
Copy Markdown

Thanks @nascheme for the PR 🌮🎉.. I'm working now to backport this PR to: 3.15.
🐍🍒⛏🤖

@miss-islington-app

Copy link
Copy Markdown

Sorry, @nascheme, I could not cleanly backport this to 3.15 due to a conflict.

Please backport manually with cherry_picker, see the devguide for more information.

cherry_picker 75d96f8ade89a9aab9ff9f986c12c9ddaf105424 3.15

@bedevere-app

bedevere-app Bot commented Oct 28, 2026

Copy link
Copy Markdown

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

@bedevere-app bedevere-app Bot removed the needs backport to 3.15 bugs and security fixes label Oct 28, 2026
nascheme added a commit that referenced this pull request Oct 28, 2026
…58977) (gh-160801)

Replace fixed sleeps used for synchronization in multiprocessing tests
with bounded waits to avoid failures on slow or overloaded systems.
Ensure pool cleanup runs even when assertions fail in the imap buffer
tests.

(cherry picked from commit 75d96f8)
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