bpo-25588: Fix regrtest when run inside IDLE by vstinner · Pull Request #3962 · python/cpython (original) (raw)
Apveyor failure looks random and unrelated to this patch. Tests pass on my machine with a fresh build.
ERROR: setUpClass (test.test_nntplib.NetworkedNNTP_SSLTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\projects\cpython\lib\test\test_nntplib.py", line 295, in setUpClass
usenetrc=False)
File "C:\projects\cpython\lib\nntplib.py", line 1077, in __init__
self.sock = _encrypt_on(self.sock, ssl_context, host)
File "C:\projects\cpython\lib\nntplib.py", line 292, in _encrypt_on
return context.wrap_socket(sock, server_hostname=hostname)
File "C:\projects\cpython\lib\ssl.py", line 410, in wrap_socket
_session=session
File "C:\projects\cpython\lib\ssl.py", line 821, in __init__
self.do_handshake()
File "C:\projects\cpython\lib\ssl.py", line 1075, in do_handshake
self._sslobj.do_handshake()
File "C:\projects\cpython\lib\ssl.py", line 696, in do_handshake
self._sslobj.do_handshake()
OSError: [Errno 0] Error