- Python Home
- About
- News
- Documentation
- Downloads
- Community
- Foundation
- Developer's Guide
- Issue Tracker
- Issues
- Summaries
- User
- Administration
- Help
➜
This issue tracker has been migrated to GitHub,
and is currently read-only.
For more information,
see the GitHub FAQs in the Python's Developer Guide.
| Author | erlendaasland |
|---|---|
| Recipients | christian.heimes, erlendaasland, pablogsal |
| Date | 2021-05-25.13:41:51 |
| SpamBayes Score | -1.0 |
| Marked as misclassified | Yes |
| Message-id | <1621950111.86.0.817844205367.issue44229@roundup.psfhosted.org> |
| In-reply-to |
| Content |
|---|
$ git diff diff --git a/Lib/ssl.py b/Lib/ssl.py index 2b131de043..9c281d8028 100644 --- a/Lib/ssl.py +++ b/Lib/ssl.py @@ -257,8 +257,9 @@ class _TLSMessageType: if sys.platform == "win32": from _ssl import enum_certificates, enum_crls +from test.support import SHORT_TIMEOUT as _GLOBAL_DEFAULT_TIMEOUT from socket import socket, SOCK_STREAM, create_connection -from socket import SOL_SOCKET, SO_TYPE, _GLOBAL_DEFAULT_TIMEOUT +from socket import SOL_SOCKET, SO_TYPE import socket as _socket import base64 # for DER-to-PEM translation import errno $ % ./python.exe -m test test_ssl -m test_get_server_certificate -u all -F ... 0:03:27 load avg: 2.24 [535] test_ssl test test_ssl failed -- Traceback (most recent call last): File "/Users/erlendaasland/src/cpython-ssl/Lib/test/test_ssl.py", line 2132, in test_get_server_certificate _test_get_server_certificate(self, *self.server_addr, cert=SIGNING_CA) File "/Users/erlendaasland/src/cpython-ssl/Lib/test/test_ssl.py", line 2329, in _test_get_server_certificate pem = ssl.get_server_certificate((host, port), ca_certs=cert) File "/Users/erlendaasland/src/cpython-ssl/Lib/ssl.py", line 1521, in get_server_certificate with create_connection(addr, timeout=timeout) as sock: File "/Users/erlendaasland/src/cpython-ssl/Lib/socket.py", line 844, in create_connection raise err File "/Users/erlendaasland/src/cpython-ssl/Lib/socket.py", line 832, in create_connection sock.connect(sa) ConnectionRefusedError: [Errno 61] Connection refused test_ssl failed == Tests result: FAILURE == |
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2021-05-25 13:41:51 | erlendaasland | set | recipients: + erlendaasland, christian.heimes, pablogsal |
| 2021-05-25 13:41:51 | erlendaasland | set | messageid: <1621950111.86.0.817844205367.issue44229@roundup.psfhosted.org> |
| 2021-05-25 13:41:51 | erlendaasland | link | issue44229 messages |
| 2021-05-25 13:41:51 | erlendaasland | create |
Powered by Roundup Copyright © 1990-2022, Python Software Foundation
Legal Statements
