Repository navigation
test: time listen_only read separately to fix flake on slow runners - #2172
Merged
zariiii9003 merged 1 commit intoNov 30, 2026
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary of Changes
TestThreadSafeBus::test_listen_only_while_recv_blocks(test/back2back_test.py). The 0.2 s bound on readinglisten_onlywas measured from before thesleep(0.1), so any oversleep counted against the read; the PyPy/macOS CI job measured 0.234 s.test_state_while_recv_blocks:Related Issues / Pull Requests
Type of Change
Checklist
tox).Additional Notes
No documentation or news fragment is needed: the change is test-only and not user-facing.
The test still catches the regressions it guards (CPython):
listen_onlygetter takes the receive lock0.900 not less than 0.5listen_onlysetter without locks0.100 not greater than or equal to 0.9Risk: easy to revert and touches one test only. The test now runs for about 1.0 s instead of 0.3 s.