cpython
cpython copied to clipboard
gh-98174: Handle EPROTOTYPE under macOS in test_sendfile_fallback_close_peer_in_the_middle_of_receiving
macOS may raise OSError
of EPROTOTYPE
when writing to a socket that is in the middle of closing down. See also http://erickt.github.io/blog/2014/11/19/adventures-in-debugging-a-potential-osx-kernel-bug/
This PR updates the test case test_sendfile_fallback_close_peer_in_the_middle_of_receiving
to handle this possibility in addition to ConnectionError
.
- Issue: gh-98174
Most changes to Python require a NEWS entry.
Please add it using the blurb_it web app or the blurb command-line tool.
Most changes to Python require a NEWS entry.
Please add it using the blurb_it web app or the blurb command-line tool.
@sobolevn, thanks for reviewing! I also removed the NEWS entry. Hope it's good now!
Should this be backported to 3.11 and 3.10?
Thanks @fancidev for the PR, and @gvanrossum for merging it 🌮🎉.. I'm working now to backport this PR to: 3.10. 🐍🍒⛏🤖
Thanks @fancidev for the PR, and @gvanrossum for merging it 🌮🎉.. I'm working now to backport this PR to: 3.11. 🐍🍒⛏🤖
GH-98356 is a backport of this pull request to the 3.10 branch.
GH-98357 is a backport of this pull request to the 3.11 branch.