You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The test_wrong_cert_tls13 unit tests checks the behavior when the server rejects the client's ceritficate. On macOS, this can sometimes lead to a "Broken pipe" on the client instead of a "Connection reset by peer" when the connection is closed during the s.write() call.
This happens frequently in the free-threaded build, but can also be reproduced on the default (with GIL) build by adding a short time.sleep(0.1) immediately before the s.write(b'data').
The
test_wrong_cert_tls13unit tests checks the behavior when the server rejects the client's ceritficate. On macOS, this can sometimes lead to a "Broken pipe" on the client instead of a "Connection reset by peer" when the connection is closed during thes.write()call.This happens frequently in the free-threaded build, but can also be reproduced on the default (with GIL) build by adding a short
time.sleep(0.1)immediately before thes.write(b'data').cpython/Lib/test/test_ssl.py
Lines 3153 to 3178 in 8eda146
Linked PRs
test_wrong_cert_tls13#117484