Skip to content

gh-154175: Remove time.sleep in test_io daemon test - #157019

Merged
ambv merged 2 commits into
python:mainfrom
cmaloney:gh153175_test_io_time_sleep
Oct 23, 2026
Merged

ambv merged 2 commits into
python:mainfrom
cmaloney:gh153175_test_io_time_sleep

Conversation

@cmaloney

@cmaloney cmaloney commented Sep 6, 2026 •

Copy link
Copy Markdown
Contributor

Deterministically get into the deadlock timeout by using mocked Raw I/O that blocks on threading events. The test still takes quite a bit of walltime as _enter_buffered_busy has a 1 second timeout on a lock acquisition which this hits.

Deterministically get into the deadlock timeout by using mocked Raw I/O
that blocks on threading events. The test still takes quite a bit of
walltime as `_enter_buffered_busy` has a 1 second timeout on a lock
acquisition which this hits.

@msullivan msullivan left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Test sleeps must be destroyed!

Comment thread Lib/test/test_io/test_general.py
@cmaloney cmaloney added the 🔨 test-with-buildbots Test PR w/ buildbots; report in status section label Oct 23, 2026
@bedevere-bot

Copy link
Copy Markdown

🤖 New build scheduled with the buildbot fleet by @cmaloney for commit 56984ad 🤖

Results will be shown at:

https://buildbot.python.org/all/#/grid?branch=refs%2Fpull%2F157019%2Fmerge

If you want to schedule another build, you need to add the 🔨 test-with-buildbots label again.

@bedevere-bot bedevere-bot removed the 🔨 test-with-buildbots Test PR w/ buildbots; report in status section label Oct 23, 2026
@ambv

ambv commented Oct 23, 2026

Copy link
Copy Markdown
Contributor

buildbot failures unrelated, landing.

@ambv
ambv merged commit 53b0004 into python:main Oct 23, 2026
127 of 133 checks passed
@cmaloney
cmaloney deleted the gh153175_test_io_time_sleep branch October 24, 2026 02:57
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.

4 participants