Skip to content

gh-68913: Stop skipping testFDPassEmpty on macOS 14 and later - #162387

Merged
ned-deily merged 2 commits into
python:mainfrom
maurycy:test-socket-fdpassempty-macos
Nov 30, 2026
Merged

ned-deily merged 2 commits into
python:mainfrom
maurycy:test-socket-fdpassempty-macos

Conversation

@maurycy

@maurycy maurycy commented Nov 21, 2026 •

Copy link
Copy Markdown
Contributor

testFDPassEmpty has been skipped on every Apple platform since recvmsg() started failing with ENOMEM for an empty SCM_RIGHTS array on 10.11. That is reported as fixed in macOS 14, and the test passes for me on 27.2.0, for both variants.

Fixes #68913

@maurycy

maurycy commented Nov 21, 2026

Copy link
Copy Markdown
Contributor Author

Comment thread Lib/test/test_socket.py Resolved
@vstinner

Copy link
Copy Markdown
Member

Should we backport the change to 3.14 and 3.15 branches?

Co-authored-by: Victor Stinner <vstinner@python.org>

@vstinner vstinner left a comment

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.

LGTM if the test suite pass on macOS. It may be worth it to enable (macOS) buildbot runs if GitHub Action CI pass on this PR.

@maurycy

maurycy commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor Author

@vstinner I'd backport to both. I checked briefly and we backported fixes to the tested code: 632daaf 9261f8b

@vstinner vstinner added needs backport to 3.14 bugs and security fixes needs backport to 3.15 bugs and security fixes labels Nov 23, 2026
@ned-deily
ned-deily merged commit 4f5d201 into python:main Nov 30, 2026
59 checks passed
@miss-islington-app

Copy link
Copy Markdown

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

@bedevere-app

bedevere-app Bot commented Nov 30, 2026

Copy link
Copy Markdown

GH-162857 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 Nov 30, 2026
@bedevere-app

bedevere-app Bot commented Nov 30, 2026

Copy link
Copy Markdown

GH-162858 is a backport of this pull request to the 3.14 branch.

@bedevere-app bedevere-app Bot removed the needs backport to 3.14 bugs and security fixes label Nov 30, 2026
@ned-deily

Copy link
Copy Markdown
Member

Thanks for the PR, @maurycy!

ned-deily pushed a commit that referenced this pull request Nov 30, 2026
GH-162387) (#162858)

(cherry picked from commit 4f5d201)
Co-authored-by: Maurycy Pawłowski-Wieroński <maurycy@maurycy.com>
Co-authored-by: Victor Stinner <vstinner@python.org>
ned-deily pushed a commit that referenced this pull request Nov 30, 2026
GH-162387) (#162857)

(cherry picked from commit 4f5d201)
Co-authored-by: Maurycy Pawłowski-Wieroński <maurycy@maurycy.com>
Co-authored-by: Victor Stinner <vstinner@python.org>
@maurycy
maurycy deleted the test-socket-fdpassempty-macos branch November 30, 2026 18: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.

test_socket testFDPassEmpty fails on OS X 10.11+ with "Cannot allocate memory"

3 participants