Skip to content

[3.14] gh-160561: Fix race in test_socket testFromFdError (GH-160930) - #160956

Merged
asvetlov merged 1 commit into
python:3.14from
miss-islington:backport-af79f49-3.14
Oct 30, 2026
Merged

asvetlov merged 1 commit into
python:3.14from
miss-islington:backport-af79f49-3.14

Conversation

@miss-islington

@miss-islington miss-islington commented Oct 30, 2026 •

Copy link
Copy Markdown
Contributor

The client thread closes its socket in clientTearDown() concurrently
with the server-side test, so the process-wide fd count could drop
between the two os_helper.fd_count() calls. Wait for the client thread
to finish before taking the first count.
(cherry picked from commit af79f49)

Co-authored-by: Andrew Svetlov andrew.svetlov@gmail.com
Co-authored-by: Claude Opus 5.5 noreply@anthropic.com

…0930)

The client thread closes its socket in clientTearDown() concurrently
with the server-side test, so the process-wide fd count could drop
between the two os_helper.fd_count() calls.  Wait for the client thread
to finish before taking the first count.
(cherry picked from commit af79f49)

Co-authored-by: Andrew Svetlov <andrew.svetlov@gmail.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
@bedevere-app bedevere-app Bot added awaiting review tests Tests in the Lib/test dir labels Oct 30, 2026
@asvetlov
asvetlov merged commit 9c3e734 into python:3.14 Oct 30, 2026
53 checks passed
@miss-islington
miss-islington deleted the backport-af79f49-3.14 branch October 30, 2026 07:28
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