-
-
Notifications
You must be signed in to change notification settings - Fork 32.1k
test_ssl randomly fails on macOS GH Action: test_get_server_certificate_sni() and test_get_server_certificate_timeout() #88403
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
https://github.com/python/cpython/pull/26359/checks?check_run_id=2668874284 Error 1: 2021-05-25T20:02:41.9174160Z ====================================================================== 2021-05-25T20:02:41.9275950Z Traceback (most recent call last):
2021-05-25T20:02:41.9374600Z File "/Users/runner/work/cpython/cpython/Lib/test/test_ssl.py", line 2147, in test_get_server_certificate_sni
2021-05-25T20:02:41.9404170Z pem = ssl.get_server_certificate((host, port), ca_certs=SIGNING_CA)
2021-05-25T20:02:41.9483350Z File "/Users/runner/work/cpython/cpython/Lib/ssl.py", line 1520, in get_server_certificate
2021-05-25T20:02:41.9505910Z with create_connection(addr, timeout=timeout) as sock:
2021-05-25T20:02:41.9585510Z File "/Users/runner/work/cpython/cpython/Lib/socket.py", line 844, in create_connection
2021-05-25T20:02:41.9607200Z raise err
2021-05-25T20:02:41.9687730Z File "/Users/runner/work/cpython/cpython/Lib/socket.py", line 832, in create_connection
2021-05-25T20:02:41.9708730Z sock.connect(sa)
2021-05-25T20:02:41.9791030Z ConnectionRefusedError: [Errno 61] Connection refused Error 2 when test_ssl is re-run: ====================================================================== Traceback (most recent call last):
File "/Users/runner/work/cpython/cpython/Lib/test/test_ssl.py", line 2165, in test_get_server_certificate_timeout
with self.assertRaises(socket.timeout):
AssertionError: TimeoutError not raised |
It looks like a duplicate or very similar to bpo-44229. |
test.pythoninfo: ssl.HAS_SNI: True |
https://github.com/python/cpython/pull/26874/checks?check_run_id=2893904059 ERROR: test_connect_cadata (test.test_ssl.SimpleBackgroundTests) Traceback (most recent call last):
File "/Users/runner/work/cpython/cpython/Lib/test/test_ssl.py", line 2131, in test_connect_cadata
s.connect(self.server_addr)
File "/Users/runner/work/cpython/cpython/Lib/ssl.py", line 1379, in connect
self._real_connect(addr, False)
File "/Users/runner/work/cpython/cpython/Lib/ssl.py", line 1370, in _real_connect
self.do_handshake()
File "/Users/runner/work/cpython/cpython/Lib/ssl.py", line 1346, in do_handshake
self._sslobj.do_handshake()
ConnectionResetError: [Errno 54] Connection reset by peer |
Duplicate of #88395. Please reopen if you disagree. |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: