Benjamin Peterson added the comment: % ./python Lib/test/regrtest.py -v test_urllib2_localnet == CPython 3.4.2+ (3.4:7be6ef737aaf+, Nov 3 2014, 10:03:11) [GCC 4.8.3] == Linux-3.16.5-gentoo-x86_64-Intel-R-_Core-TM-_i7-2860QM_CPU_@_2.50GHz-with-gentoo-2.2 little-endian == hash algorithm: siphash24 64bit == /home/benjamin/dev/python/3.4/build/test_python_28724 Testing with flags: sys.flags(debug=0, inspect=0, interactive=0, optimize=0, dont_write_bytecode=0, no_user_site=0, no_site=0, ignore_environment=0, verbose=0, bytes_warning=0, quiet=0, hash_randomization=1, isolated=0) [1/1] test_urllib2_localnet test_basic_auth_httperror (test.test_urllib2_localnet.BasicAuthTests) ... ok test_basic_auth_success (test.test_urllib2_localnet.BasicAuthTests) ... ok test_proxy_qop_auth_int_works_or_throws_urlerror (test.test_urllib2_localnet.ProxyAuthTests) ... ok test_proxy_qop_auth_works (test.test_urllib2_localnet.ProxyAuthTests) ... ok test_proxy_with_bad_password_raises_httperror (test.test_urllib2_localnet.ProxyAuthTests) ... ok test_proxy_with_no_password_raises_httperror (test.test_urllib2_localnet.ProxyAuthTests) ... ok test_200 (test.test_urllib2_localnet.TestUrlopen) ... ok test_200_with_parameters (test.test_urllib2_localnet.TestUrlopen) ... ok test_404 (test.test_urllib2_localnet.TestUrlopen) ... ok test_bad_address (test.test_urllib2_localnet.TestUrlopen) ... skipped "Use of the 'network' resource not enabled" test_basic (test.test_urllib2_localnet.TestUrlopen) ... ok test_chunked (test.test_urllib2_localnet.TestUrlopen) ... ok test_geturl (test.test_urllib2_localnet.TestUrlopen) ... ok test_https (test.test_urllib2_localnet.TestUrlopen) ... Got an error: [SSL: TLSV1_ALERT_UNKNOWN_CA] tlsv1 alert unknown ca (_ssl.c:600) stopping HTTPS server joining HTTPS thread ERROR test_https_sni (test.test_urllib2_localnet.TestUrlopen) ... Got an error: [SSL: TLSV1_ALERT_UNKNOWN_CA] tlsv1 alert unknown ca (_ssl.c:600) stopping HTTPS server joining HTTPS thread ERROR test_https_with_cadefault (test.test_urllib2_localnet.TestUrlopen) ... stopping HTTPS server Got an error: [SSL: TLSV1_ALERT_UNKNOWN_CA] tlsv1 alert unknown ca (_ssl.c:600) joining HTTPS thread ok test_https_with_cafile (test.test_urllib2_localnet.TestUrlopen) ... Got an error: [SSL: TLSV1_ALERT_UNKNOWN_CA] tlsv1 alert unknown ca (_ssl.c:600) stopping HTTPS server joining HTTPS thread stopping HTTPS server joining HTTPS thread ok test_info (test.test_urllib2_localnet.TestUrlopen) ... ok test_iteration (test.test_urllib2_localnet.TestUrlopen) ... ok test_line_iteration (test.test_urllib2_localnet.TestUrlopen) ... ok test_redirection (test.test_urllib2_localnet.TestUrlopen) ... ok test_sending_headers (test.test_urllib2_localnet.TestUrlopen) ... ok
====================================================================== ERROR: test_https (test.test_urllib2_localnet.TestUrlopen) ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/benjamin/dev/python/3.4/Lib/urllib/request.py", line 1182, in do_open h.request(req.get_method(), req.selector, req.data, headers) File "/home/benjamin/dev/python/3.4/Lib/http/client.py", line 1090, in request self._send_request(method, url, body, headers) File "/home/benjamin/dev/python/3.4/Lib/http/client.py", line 1128, in _send_request self.endheaders(body) File "/home/benjamin/dev/python/3.4/Lib/http/client.py", line 1086, in endheaders self._send_output(message_body) File "/home/benjamin/dev/python/3.4/Lib/http/client.py", line 924, in _send_output self.send(msg) File "/home/benjamin/dev/python/3.4/Lib/http/client.py", line 859, in send self.connect() File "/home/benjamin/dev/python/3.4/Lib/http/client.py", line 1230, in connect server_hostname=sni_hostname) File "/home/benjamin/dev/python/3.4/Lib/ssl.py", line 364, in wrap_socket _context=self) File "/home/benjamin/dev/python/3.4/Lib/ssl.py", line 584, in __init__ self.do_handshake() File "/home/benjamin/dev/python/3.4/Lib/ssl.py", line 811, in do_handshake self._sslobj.do_handshake() ssl.SSLError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:600) During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/home/benjamin/dev/python/3.4/Lib/test/test_urllib2_localnet.py", line 548, in test_https data = self.urlopen("https://localhost:%s/bizarre" % handler.port) File "/home/benjamin/dev/python/3.4/Lib/test/test_urllib2_localnet.py", line 455, in urlopen f = urllib.request.urlopen(url, data, **kwargs) File "/home/benjamin/dev/python/3.4/Lib/urllib/request.py", line 161, in urlopen return opener.open(url, data, timeout) File "/home/benjamin/dev/python/3.4/Lib/urllib/request.py", line 463, in open response = self._open(req, data) File "/home/benjamin/dev/python/3.4/Lib/urllib/request.py", line 481, in _open '_open', req) File "/home/benjamin/dev/python/3.4/Lib/urllib/request.py", line 441, in _call_chain result = func(*args) File "/home/benjamin/dev/python/3.4/Lib/urllib/request.py", line 1225, in https_open context=self._context, check_hostname=self._check_hostname) File "/home/benjamin/dev/python/3.4/Lib/urllib/request.py", line 1184, in do_open raise URLError(err) urllib.error.URLError: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:600)> ====================================================================== ERROR: test_https_sni (test.test_urllib2_localnet.TestUrlopen) ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/benjamin/dev/python/3.4/Lib/urllib/request.py", line 1182, in do_open h.request(req.get_method(), req.selector, req.data, headers) File "/home/benjamin/dev/python/3.4/Lib/http/client.py", line 1090, in request self._send_request(method, url, body, headers) File "/home/benjamin/dev/python/3.4/Lib/http/client.py", line 1128, in _send_request self.endheaders(body) File "/home/benjamin/dev/python/3.4/Lib/http/client.py", line 1086, in endheaders self._send_output(message_body) File "/home/benjamin/dev/python/3.4/Lib/http/client.py", line 924, in _send_output self.send(msg) File "/home/benjamin/dev/python/3.4/Lib/http/client.py", line 859, in send self.connect() File "/home/benjamin/dev/python/3.4/Lib/http/client.py", line 1230, in connect server_hostname=sni_hostname) File "/home/benjamin/dev/python/3.4/Lib/ssl.py", line 364, in wrap_socket _context=self) File "/home/benjamin/dev/python/3.4/Lib/ssl.py", line 584, in __init__ self.do_handshake() File "/home/benjamin/dev/python/3.4/Lib/ssl.py", line 811, in do_handshake self._sslobj.do_handshake() ssl.SSLError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:600) During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/home/benjamin/dev/python/3.4/Lib/test/test_urllib2_localnet.py", line 587, in test_https_sni self.urlopen("https://localhost:%s" % handler.port) File "/home/benjamin/dev/python/3.4/Lib/test/test_urllib2_localnet.py", line 455, in urlopen f = urllib.request.urlopen(url, data, **kwargs) File "/home/benjamin/dev/python/3.4/Lib/urllib/request.py", line 161, in urlopen return opener.open(url, data, timeout) File "/home/benjamin/dev/python/3.4/Lib/urllib/request.py", line 463, in open response = self._open(req, data) File "/home/benjamin/dev/python/3.4/Lib/urllib/request.py", line 481, in _open '_open', req) File "/home/benjamin/dev/python/3.4/Lib/urllib/request.py", line 441, in _call_chain result = func(*args) File "/home/benjamin/dev/python/3.4/Lib/urllib/request.py", line 1225, in https_open context=self._context, check_hostname=self._check_hostname) File "/home/benjamin/dev/python/3.4/Lib/urllib/request.py", line 1184, in do_open raise URLError(err) urllib.error.URLError: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:600)> ---------------------------------------------------------------------- Ran 22 tests in 3.087s ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue22417> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com