Skip to content
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

bpo-30458: Disallow control chars in http URLs. #12755

Merged
merged 13 commits into from
May 1, 2019

Conversation

gpshead
Copy link
Member

@gpshead gpshead commented Apr 10, 2019

bpo-36276 and bpo-30458:

disallow control characters such as whitespace in urls put into the raw http protocol within http.client.

https://bugs.python.org/issue36276

https://bugs.python.org/issue30458

Example possible fix for those issues.
@tirkarthi
Copy link
Member

urlopen uses _splittype where this validation could be added. Moving it to _splittype also makes sure Request object instantiation is also handled. Simple case as test for validation.

diff --git a/Lib/test/test_urllib.py b/Lib/test/test_urllib.py
index 2ac73b58d8..99bd934765 100644
--- a/Lib/test/test_urllib.py
+++ b/Lib/test/test_urllib.py
@@ -329,6 +329,14 @@ class urlopen_HttpTests(unittest.TestCase, FakeHTTPMixin, FakeFTPMixin):
         finally:
             self.unfakehttp()

+    def test_url_newline(self):
+        self.fakehttp(b"HTTP/1.1 200 OK\r\n\r\nHello!")
+        try:
+            with self.assertRaises(ValueError):
+                resp = urlopen("http://127.0.0.1:1234/?q=HTTP/1.1\r\nHeader: Value")
+        finally:
+            self.unfakehttp()
+
     def test_read_0_9(self):
         # "0.9" response accepted (but not "simple responses" without
         # a status line)
@@ -1512,6 +1520,11 @@ class RequestTests(unittest.TestCase):
         request.method = 'HEAD'
         self.assertEqual(request.get_method(), 'HEAD')

+    def test_url_newline(self):
+        Request = urllib.request.Request
+        with self.assertRaises(ValueError):
+            resp = Request("http://127.0.0.1:1234/?q=HTTP/1.1\r\nHeader: Value")
+

 class URL2PathNameTests(unittest.TestCase):

diff --git a/Lib/urllib/parse.py b/Lib/urllib/parse.py
index 8b6c9b1060..20242eee2d 100644
--- a/Lib/urllib/parse.py
+++ b/Lib/urllib/parse.py
@@ -997,6 +997,11 @@ def _splittype(url):
     if _typeprog is None:
         _typeprog = re.compile('([^/:]+):(.*)', re.DOTALL)

+    unquoted_url = unquote(url)
+    if (unquoted_url.startswith('http') and
+        re.search("[\x00-\x19\x7f-\x9f]", unquoted_url)):
+        raise ValueError("URL can't contain control characters. %r" % (unquoted_url,))
+
     match = _typeprog.match(url)
     if match:
         scheme, data = match.groups()

Lib/urllib/request.py Outdated Show resolved Hide resolved
Lib/urllib/parse.py Outdated Show resolved Hide resolved
@tirkarthi
Copy link
Member

The initial reverted fix in golang was reverted as noted in golang/go#27302 (comment) because it took into account unicode characters in URL also as problematic CTL/invalid characters : golang/go@1040626#diff-6c2d018290e298803c0c9419d8739885R1136 and resorted to only using ASCII CTL characters. I assume this could be the internal test failures at Google where unicode values were present in URL.

It's not a problem with Python because urllib already tries to decode using ASCII and therefore throws a ValueError which golang assumes valid but the Python function has a comment from 2008 which could go into it's own enhancement if needed since browsers like Firefox accept unencoded unicode values in URL these days.

# Most URL schemes require ASCII. If that changes, the conversion
# can be relaxed.

url = url.encode("ASCII").decode()

@tirkarthi
Copy link
Member

Sorry, this has been sending me circles from morning. Checking out the latest golang source this was further relaxed golang/go@f1d662f#diff-130fa30904f41d0d113c732265e91542R63 to use check only for space and 0x7f instead of anything between 0x7f <= r && r <= 0x9f

First fix (r < ' ' || 0x7f <= r && r <= 0x9f)

golang/go@829c5df#diff-130fa30904f41d0d113c732265e91542

Latest fix reverting the above (b < ' ' || b == 0x7f)

golang/go@f1d662f#diff-130fa30904f41d0d113c732265e91542R63

func stringContainsCTLByte(s string) bool {
	for i := 0; i < len(s); i++ {
		b := s[i]
		if b < ' ' || b == 0x7f {
			return true
		}
	}
	return false
}

Thanks, this seems to have been changed with 448a541 in this PR

@tirkarthi
Copy link
Member

See also an older thread from Victor on fixing similar issues : https://mail.python.org/pipermail/python-dev/2017-July/148699.html

@gpshead
Copy link
Member Author

gpshead commented Apr 10, 2019

See also an older thread from Victor on fixing similar issues : https://mail.python.org/pipermail/python-dev/2017-July/148699.html

Yep. I'm trying to make this fix as surgical as possible to only prevent the actual problem of allowing invalid paths with whitespace to pass through to the protocol level without changing public APIs of other functions such as parse.quote or (deprecated) parse.splittype and such.

@gpshead gpshead requested a review from vstinner April 10, 2019 08:47
@gpshead gpshead changed the title bpo-14826 bpo-36276: Disallow control chars in http URLs. bpo-36276: Disallow control chars in http URLs. Apr 10, 2019
@gpshead gpshead requested a review from orsenthil April 10, 2019 09:08
@gpshead gpshead changed the title bpo-36276: Disallow control chars in http URLs. bpo-30458: Disallow control chars in http URLs. Apr 10, 2019
@gpshead gpshead added the type-security A security issue label Apr 10, 2019
@tirkarthi
Copy link
Member

This seems to cause issue with test.test_xmlrpc.SimpleServerTestCase.test_partial_post where the below URL is passed to regex and matches due to \n throwing ValueError and the test hangs in the CI. I am not sure what the test does and the value passed to regex more seems like a Response than URL to me.

/RPC2 HTTP/1.0
Content-Length: 100

bye

@tirkarthi
Copy link
Member

Actual test :

with contextlib.closing(http.client.HTTPConnection(ADDR, PORT)) as conn:
    conn.request('POST', '/RPC2 HTTP/1.0\r\nContent-Length: 100\r\n\r\nbye')

So /RPC2 HTTP/1.0\r\nContent-Length: 100\r\n\r\nbye is passed as URL that is validated now? This seemed to have been introduced as part of https://bugs.python.org/issue14001 which fixes DDoS vulnerability on it's own :)

def request(self, method, url, body=None, headers={}, *,
            encode_chunked=False):
    """Send a complete request to the server."""
    self._send_request(method, url, body, headers, encode_chunked)

@mcepl
Copy link
Contributor

mcepl commented May 3, 2019

Suggested patch for 2.7.16

I would love to get some feedback on this.

hroncok added a commit to hroncok/cpython that referenced this pull request May 7, 2019
Disallow control chars in http URLs in urllib.urlopen.  This addresses a potential security problem for applications that do not sanity check their URLs where http request headers could be injected.

Disable https related urllib tests on a build without ssl (pythonGH-13032)
These tests require an SSL enabled build. Skip these tests when python is built without SSL to fix test failures.

Use http.client.InvalidURL instead of ValueError as the new error case's exception. (pythonGH-13044)

Co-Authored-By: Miro Hrončok <miro@hroncok.cz>
@bedevere-bot
Copy link

GH-13154 is a backport of this pull request to the 3.7 branch.

@bedevere-bot
Copy link

GH-13155 is a backport of this pull request to the 3.6 branch.

hroncok added a commit to hroncok/cpython that referenced this pull request May 7, 2019
Disallow control chars in http URLs in urllib.urlopen.  This addresses a potential security problem for applications that do not sanity check their URLs where http request headers could be injected.

Disable https related urllib tests on a build without ssl (pythonGH-13032)
These tests require an SSL enabled build. Skip these tests when python is built without SSL to fix test failures.

Use http.client.InvalidURL instead of ValueError as the new error case's exception. (pythonGH-13044)

Co-Authored-By: Miro Hrončok <miro@hroncok.cz>
gpshead pushed a commit that referenced this pull request May 7, 2019
Disallow control chars in http URLs in urllib.urlopen.  This addresses a potential security problem for applications that do not sanity check their URLs where http request headers could be injected.

Disable https related urllib tests on a build without ssl (GH-13032)
These tests require an SSL enabled build. Skip these tests when python is built without SSL to fix test failures.

Use http.client.InvalidURL instead of ValueError as the new error case's exception. (GH-13044)

Backport Co-Authored-By: Miro Hrončok <miro@hroncok.cz>
ned-deily pushed a commit that referenced this pull request May 8, 2019
Disallow control chars in http URLs in urllib.urlopen.  This addresses a potential security problem for applications that do not sanity check their URLs where http request headers could be injected.

Disable https related urllib tests on a build without ssl (GH-13032)
These tests require an SSL enabled build. Skip these tests when python is built without SSL to fix test failures.

Use http.client.InvalidURL instead of ValueError as the new error case's exception. (GH-13044)

Co-Authored-By: Miro Hrončok <miro@hroncok.cz>
@bedevere-bot
Copy link

⚠️⚠️⚠️ Buildbot failure ⚠️⚠️⚠️

Hi! The buildbot AMD64 Windows7 SP1 3.6 has failed when building commit c50d437.

What do you need to do:

  1. Don't panic.
  2. Check the buildbot page in the devguide if you don't know what the buildbots are or how they work.
  3. Go to the page of the buildbot that failed (https://buildbot.python.org/all/#builders/17/builds/538) and take a look at the build logs.
  4. Check if the failure is related to this commit (c50d437) or if it is a false positive.
  5. If the failure is related to this commit, please, reflect that on the issue and make a new Pull Request with a fix.

You can take a look at the buildbot page here:

https://buildbot.python.org/all/#builders/17/builds/538

Click to see traceback logs
From https://github.com/python/cpython
 * branch            3.6        -> FETCH_HEAD
 * [new tag]         3.4        -> 3.4
 * [new tag]         v3.8.0a4   -> v3.8.0a4
Reset branch '3.6'

Could Not Find C:\buildbot.python.org\3.6.kloth-win64\build\Lib\*.pyc
The system cannot find the file specified.
Could Not Find C:\buildbot.python.org\3.6.kloth-win64\build\PCbuild\python*.zip

test_ossaudiodev skipped -- No module named 'ossaudiodev'
test_nis skipped -- No module named 'nis'
test_dbm_ndbm skipped -- No module named '_dbm'
test_ioctl skipped -- No module named 'fcntl'
test_fcntl skipped -- No module named 'fcntl'
test_threadsignals skipped -- Can't test signal on win32
test_kqueue skipped -- test works only on BSD
test_spwd skipped -- No module named 'spwd'

----------------------------------------------------------------------

Ran 0 tests in 0.000s

OK
test_bad_status_repr (test.test_httplib.BasicTest) ... ok
test_chunked (test.test_httplib.BasicTest) ... ok
test_chunked_extension (test.test_httplib.BasicTest) ... ok
test_chunked_head (test.test_httplib.BasicTest) ... ok
test_chunked_missing_end (test.test_httplib.BasicTest)
some servers may serve up a short chunked encoding stream ... ok
test_chunked_sync (test.test_httplib.BasicTest)
Check that we don't read past the end of the chunked-encoding stream ... ok
test_chunked_trailers (test.test_httplib.BasicTest)
See that trailers are read and ignored ... ok
test_content_length_sync (test.test_httplib.BasicTest)
Check that we don't read past the end of the Content-Length stream ... ok
test_early_eof (test.test_httplib.BasicTest) ... ok
test_epipe (test.test_httplib.BasicTest) ... ok
test_error_leak (test.test_httplib.BasicTest) ... ok
test_host_port (test.test_httplib.BasicTest) ... ok
test_incomplete_read (test.test_httplib.BasicTest) ... ok
test_mixed_reads (test.test_httplib.BasicTest) ... ok
test_negative_content_length (test.test_httplib.BasicTest) ... ok
test_overflowing_chunked_line (test.test_httplib.BasicTest) ... ok
test_overflowing_header_line (test.test_httplib.BasicTest) ... ok
test_overflowing_status_line (test.test_httplib.BasicTest) ... ok
test_partial_readintos (test.test_httplib.BasicTest) ... ok
test_partial_readintos_incomplete_body (test.test_httplib.BasicTest) ... ok
test_partial_readintos_no_content_length (test.test_httplib.BasicTest) ... ok
test_partial_reads (test.test_httplib.BasicTest) ... ok
test_partial_reads_incomplete_body (test.test_httplib.BasicTest) ... ok
test_partial_reads_no_content_length (test.test_httplib.BasicTest) ... ok
test_read1_bound_content_length (test.test_httplib.BasicTest) ... ok
test_read1_content_length (test.test_httplib.BasicTest) ... ok
test_read_head (test.test_httplib.BasicTest) ... ok
test_readinto_chunked (test.test_httplib.BasicTest) ... ok
test_readinto_chunked_head (test.test_httplib.BasicTest) ... ok
test_readinto_head (test.test_httplib.BasicTest) ... ok
test_readline_bound_content_length (test.test_httplib.BasicTest) ... ok
test_readlines_content_length (test.test_httplib.BasicTest) ... ok
test_response_fileno (test.test_httplib.BasicTest) ... ok
test_response_headers (test.test_httplib.BasicTest) ... ok
test_send (test.test_httplib.BasicTest) ... ok
test_send_file (test.test_httplib.BasicTest) ... ok
test_send_iter (test.test_httplib.BasicTest) ... ok
test_send_type_error (test.test_httplib.BasicTest) ... ok
test_send_updating_file (test.test_httplib.BasicTest) ... ok
test_status_lines (test.test_httplib.BasicTest) ... ok
test_too_many_headers (test.test_httplib.BasicTest) ... ok
test_peek (test.test_httplib.ExtendedReadTest) ... ok
test_peek_0 (test.test_httplib.ExtendedReadTest) ... ok
test_read1 (test.test_httplib.ExtendedReadTest) ... ok
test_read1_0 (test.test_httplib.ExtendedReadTest) ... ok
test_read1_bounded (test.test_httplib.ExtendedReadTest) ... ok
test_read1_unbounded (test.test_httplib.ExtendedReadTest) ... ok
test_readline (test.test_httplib.ExtendedReadTest) ... ok
test_peek (test.test_httplib.ExtendedReadTestChunked) ... ok
test_peek_0 (test.test_httplib.ExtendedReadTestChunked) ... ok
test_read1 (test.test_httplib.ExtendedReadTestChunked) ... ok
test_read1_0 (test.test_httplib.ExtendedReadTestChunked) ... ok
test_read1_bounded (test.test_httplib.ExtendedReadTestChunked) ... ok
test_read1_unbounded (test.test_httplib.ExtendedReadTestChunked) ... ok
test_readline (test.test_httplib.ExtendedReadTestChunked) ... ok
test_getting_header (test.test_httplib.HTTPResponseTest) ... ok
test_getting_header_defaultint (test.test_httplib.HTTPResponseTest) ... ok
test_getting_nonexistent_header_with_iterable_default (test.test_httplib.HTTPResponseTest) ... ok
test_getting_nonexistent_header_with_string_default (test.test_httplib.HTTPResponseTest) ... ok
test_getting_nonexistent_header_without_default (test.test_httplib.HTTPResponseTest) ... ok
test_attributes (test.test_httplib.HTTPSTest) ... ok
test_host_port (test.test_httplib.HTTPSTest) ... ok
test_local_bad_hostname (test.test_httplib.HTTPSTest) ...  server (('127.0.0.1', 17580):17580 ('ECDHE-RSA-AES256-GCM-SHA384', 'TLSv1/SSLv3', 256)):
   [08/May/2019 10:38:04] code 404, message File not found
 server (('127.0.0.1', 17580):17580 ('ECDHE-RSA-AES256-GCM-SHA384', 'TLSv1/SSLv3', 256)):
   [08/May/2019 10:38:04] "GET /nonexistent HTTP/1.1" 404 -
 server (('127.0.0.1', 17580):17580 ('ECDHE-RSA-AES256-GCM-SHA384', 'TLSv1/SSLv3', 256)):
   [08/May/2019 10:38:06] code 404, message File not found
 server (('127.0.0.1', 17580):17580 ('ECDHE-RSA-AES256-GCM-SHA384', 'TLSv1/SSLv3', 256)):
   [08/May/2019 10:38:06] "GET /nonexistent HTTP/1.1" 404 -
stopping HTTPS server
joining HTTPS thread
ok
test_local_good_hostname (test.test_httplib.HTTPSTest) ...  server (('127.0.0.1', 17627):17627 ('ECDHE-RSA-AES256-GCM-SHA384', 'TLSv1/SSLv3', 256)):
   [08/May/2019 10:38:08] code 404, message File not found
 server (('127.0.0.1', 17627):17627 ('ECDHE-RSA-AES256-GCM-SHA384', 'TLSv1/SSLv3', 256)):
   [08/May/2019 10:38:08] "GET /nonexistent HTTP/1.1" 404 -
stopping HTTPS server
joining HTTPS thread
ok
test_local_unknown_cert (test.test_httplib.HTTPSTest) ... stopping HTTPS server
Got an error:
[WinError 10054] An existing connection was forcibly closed by the remote host
joining HTTPS thread
ok
test_networked (test.test_httplib.HTTPSTest) ... ok
test_networked_bad_cert (test.test_httplib.HTTPSTest) ... ok
test_networked_good_cert (test.test_httplib.HTTPSTest) ... ERROR
test_networked_noverification (test.test_httplib.HTTPSTest) ... ok
test_networked_trusted_by_default_cert (test.test_httplib.HTTPSTest) ... ok
test_auto_headers (test.test_httplib.HeaderTests) ... ok
test_content_length_0 (test.test_httplib.HeaderTests) ... ok
test_headers_debuglevel (test.test_httplib.HeaderTests) ... ok
test_invalid_headers (test.test_httplib.HeaderTests) ... ok
test_ipv6host_header (test.test_httplib.HeaderTests) ... ok
test_malformed_headers_coped_with (test.test_httplib.HeaderTests) ... ok
test_parse_all_octets (test.test_httplib.HeaderTests) ... ok
test_putheader (test.test_httplib.HeaderTests) ... ok
test_all (test.test_httplib.OfflineTest) ... ok
test_client_constants (test.test_httplib.OfflineTest) ... ok
test_responses (test.test_httplib.OfflineTest) ... ok
test_100_close (test.test_httplib.PersistenceTest) ... ok
test_disconnected (test.test_httplib.PersistenceTest) ... ok
test_reuse_reconnect (test.test_httplib.PersistenceTest) ... ok
test_ascii_body (test.test_httplib.RequestBodyTest) ... ok
test_binary_file_body (test.test_httplib.RequestBodyTest) ... ok
test_bytes_body (test.test_httplib.RequestBodyTest) ... ok
test_latin1_body (test.test_httplib.RequestBodyTest) ... ok
test_list_body (test.test_httplib.RequestBodyTest) ... ok
test_manual_content_length (test.test_httplib.RequestBodyTest) ... ok
test_text_file_body (test.test_httplib.RequestBodyTest) ... ok
testHTTPConnectionSourceAddress (test.test_httplib.SourceAddressTest) ... ok
testHTTPSConnectionSourceAddress (test.test_httplib.SourceAddressTest) ... ok
testTimeoutAttribute (test.test_httplib.TimeoutTest) ... ok
test_empty_body (test.test_httplib.TransferEncodingTest) ... ok
test_endheaders_chunked (test.test_httplib.TransferEncodingTest) ... ok
test_explicit_headers (test.test_httplib.TransferEncodingTest) ... ok
test_request (test.test_httplib.TransferEncodingTest) ... ok
test_connect_put_request (test.test_httplib.TunnelTests) ... ok
test_connect_with_tunnel (test.test_httplib.TunnelTests) ... ok
test_disallow_set_tunnel_after_connect (test.test_httplib.TunnelTests) ... ok
test_set_tunnel_host_port_headers (test.test_httplib.TunnelTests) ... ok
test_tunnel_debuglog (test.test_httplib.TunnelTests) ... ok

======================================================================
ERROR: test_networked_good_cert (test.test_httplib.HTTPSTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\buildbot.python.org\3.6.kloth-win64\build\lib\test\test_httplib.py", line 1605, in test_networked_good_cert
    h.request('GET', '/')
  File "C:\buildbot.python.org\3.6.kloth-win64\build\lib\http\client.py", line 1254, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "C:\buildbot.python.org\3.6.kloth-win64\build\lib\http\client.py", line 1300, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "C:\buildbot.python.org\3.6.kloth-win64\build\lib\http\client.py", line 1249, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "C:\buildbot.python.org\3.6.kloth-win64\build\lib\http\client.py", line 1036, in _send_output
    self.send(msg)
  File "C:\buildbot.python.org\3.6.kloth-win64\build\lib\http\client.py", line 974, in send
    self.connect()
  File "C:\buildbot.python.org\3.6.kloth-win64\build\lib\http\client.py", line 1415, in connect
    server_hostname=server_hostname)
  File "C:\buildbot.python.org\3.6.kloth-win64\build\lib\ssl.py", line 407, in wrap_socket
    _context=self, _session=session)
  File "C:\buildbot.python.org\3.6.kloth-win64\build\lib\ssl.py", line 817, in __init__
    self.do_handshake()
  File "C:\buildbot.python.org\3.6.kloth-win64\build\lib\ssl.py", line 1077, in do_handshake
    self._sslobj.do_handshake()
  File "C:\buildbot.python.org\3.6.kloth-win64\build\lib\ssl.py", line 689, in do_handshake
    self._sslobj.do_handshake()
ssl.SSLError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:852)

----------------------------------------------------------------------

Ran 103 tests in 10.218s

FAILED (errors=1)
test test_httplib failed
test_tix skipped -- gui not available (WSF_VISIBLE flag not set)
test_epoll skipped -- test works only on Linux 2.6
test_devpoll skipped -- test works only on Solaris OS family
test_resource skipped -- No module named 'resource'
test_ttk_guionly skipped -- gui not available (WSF_VISIBLE flag not set)
test_multiprocessing_fork skipped -- fork is not available on Windows
test_wait3 skipped -- os.fork not defined
minkernel\crts\ucrt\src\appcrt\lowio\write.cpp(50) : Assertion failed: (_osfile(fh) & FOPEN)
test_posix skipped -- No module named 'posix'
test_pipes skipped -- pipes module only works on posix
test_tk skipped -- gui not available (WSF_VISIBLE flag not set)
test_grp skipped -- No module named 'grp'
test_curses skipped -- No module named '_curses'
test_dbm_gnu skipped -- No module named '_gdbm'
test_pty skipped -- No module named 'termios'
test_multiprocessing_forkserver skipped -- forkserver is not available on Windows
test_readline skipped -- No module named 'readline'
test_fork1 skipped -- object <module 'os' from 'C:\\buildbot.python.org\\3.6.kloth-win64\\build\\lib\\os.py'> has no attribute 'fork'
test_zipfile64 skipped -- test requires loads of disk-space bytes and a long time to run
test_openpty skipped -- os.openpty() not available.
test_poll skipped -- select.poll not defined
test_pwd skipped -- No module named 'pwd'
test_syslog skipped -- No module named 'syslog'
test_crypt skipped -- No module named '_crypt'
skipped 'dtrace(1) failed: [WinError 2] The system cannot find the file specified'
skipped 'dtrace(1) failed: [WinError 2] The system cannot find the file specified'
skipped 'stap(1) failed: [WinError 2] The system cannot find the file specified'
skipped 'stap(1) failed: [WinError 2] The system cannot find the file specified'

----------------------------------------------------------------------

Ran 0 tests in 0.000s

OK (skipped=4)
test_gdb skipped -- Couldn't find gdb on the path
test_wait4 skipped -- object <module 'os' from 'C:\\buildbot.python.org\\3.6.kloth-win64\\build\\lib\\os.py'> has no attribute 'fork'
minkernel\crts\ucrt\src\appcrt\lowio\write.cpp(50) : Assertion failed: (_osfile(fh) & FOPEN)
minkernel\crts\ucrt\src\appcrt\lowio\close.cpp(49) : Assertion failed: (_osfile(fh) & FOPEN)
minkernel\crts\ucrt\src\appcrt\lowio\close.cpp(49) : Assertion failed: (_osfile(fh) & FOPEN)
Got an error:
[SSL: TLSV1_ALERT_UNKNOWN_CA] tlsv1 alert unknown ca (_ssl.c:852)
test test_httplib failed

Could Not Find C:\buildbot.python.org\3.6.kloth-win64\build\PCbuild\python*.zip

@bedevere-bot
Copy link

⚠️⚠️⚠️ Buildbot failure ⚠️⚠️⚠️

Hi! The buildbot AMD64 Windows8.1 Non-Debug 3.6 has failed when building commit c50d437.

What do you need to do:

  1. Don't panic.
  2. Check the buildbot page in the devguide if you don't know what the buildbots are or how they work.
  3. Go to the page of the buildbot that failed (https://buildbot.python.org/all/#builders/44/builds/721) and take a look at the build logs.
  4. Check if the failure is related to this commit (c50d437) or if it is a false positive.
  5. If the failure is related to this commit, please, reflect that on the issue and make a new Pull Request with a fix.

You can take a look at the buildbot page here:

https://buildbot.python.org/all/#builders/44/builds/721

Click to see traceback logs
From https://github.com/python/cpython
 * branch            3.6        -> FETCH_HEAD
 * [new tag]         3.4        -> 3.4
 * [new tag]         v3.8.0a4   -> v3.8.0a4
Reset branch '3.6'

Could Not Find D:\buildarea\3.6.ware-win81-release\build\Lib\*.pyc
The system cannot find the file specified.
Could Not Find D:\buildarea\3.6.ware-win81-release\build\PCbuild\python*.zip

test_wait4 skipped -- object <module 'os' from 'D:\\buildarea\\3.6.ware-win81-release\\build\\lib\\os.py'> has no attribute 'fork'
test_ossaudiodev skipped -- No module named 'ossaudiodev'
test_wait3 skipped -- os.fork not defined
test_multiprocessing_forkserver skipped -- forkserver is not available on Windows
test_fcntl skipped -- No module named 'fcntl'
test_devpoll skipped -- test works only on Solaris OS family
test_resource skipped -- No module named 'resource'
test_nis skipped -- No module named 'nis'
test_pty skipped -- No module named 'termios'
test_multiprocessing_fork skipped -- fork is not available on Windows
test_crypt skipped -- No module named '_crypt'
test_kqueue skipped -- test works only on BSD
test_curses skipped -- No module named '_curses'
test_openpty skipped -- os.openpty() not available.
test_threadsignals skipped -- Can't test signal on win32
test_fork1 skipped -- object <module 'os' from 'D:\\buildarea\\3.6.ware-win81-release\\build\\lib\\os.py'> has no attribute 'fork'
test_poll skipped -- select.poll not defined
test_pipes skipped -- pipes module only works on posix
test_grp skipped -- No module named 'grp'
test_ioctl skipped -- No module named 'fcntl'
test_dbm_ndbm skipped -- No module named '_dbm'
test_epoll skipped -- test works only on Linux 2.6
test_readline skipped -- No module named 'readline'
test_dbm_gnu skipped -- No module named '_gdbm'
test_syslog skipped -- No module named 'syslog'
test_spwd skipped -- No module named 'spwd'
test_gdb skipped -- Couldn't find gdb on the path
test_pwd skipped -- No module named 'pwd'

----------------------------------------------------------------------

Ran 0 tests in 0.000s

OK
test_posix skipped -- No module named 'posix'
test_zipfile64 skipped -- test requires loads of disk-space bytes and a long time to run
test_bad_status_repr (test.test_httplib.BasicTest) ... ok
test_chunked (test.test_httplib.BasicTest) ... ok
test_chunked_extension (test.test_httplib.BasicTest) ... ok
test_chunked_head (test.test_httplib.BasicTest) ... ok
test_chunked_missing_end (test.test_httplib.BasicTest)
some servers may serve up a short chunked encoding stream ... ok
test_chunked_sync (test.test_httplib.BasicTest)
Check that we don't read past the end of the chunked-encoding stream ... ok
test_chunked_trailers (test.test_httplib.BasicTest)
See that trailers are read and ignored ... ok
test_content_length_sync (test.test_httplib.BasicTest)
Check that we don't read past the end of the Content-Length stream ... ok
test_early_eof (test.test_httplib.BasicTest) ... ok
test_epipe (test.test_httplib.BasicTest) ... ok
test_error_leak (test.test_httplib.BasicTest) ... ok
test_host_port (test.test_httplib.BasicTest) ... ok
test_incomplete_read (test.test_httplib.BasicTest) ... ok
test_mixed_reads (test.test_httplib.BasicTest) ... ok
test_negative_content_length (test.test_httplib.BasicTest) ... ok
test_overflowing_chunked_line (test.test_httplib.BasicTest) ... ok
test_overflowing_header_line (test.test_httplib.BasicTest) ... ok
test_overflowing_status_line (test.test_httplib.BasicTest) ... ok
test_partial_readintos (test.test_httplib.BasicTest) ... ok
test_partial_readintos_incomplete_body (test.test_httplib.BasicTest) ... ok
test_partial_readintos_no_content_length (test.test_httplib.BasicTest) ... ok
test_partial_reads (test.test_httplib.BasicTest) ... ok
test_partial_reads_incomplete_body (test.test_httplib.BasicTest) ... ok
test_partial_reads_no_content_length (test.test_httplib.BasicTest) ... ok
test_read1_bound_content_length (test.test_httplib.BasicTest) ... ok
test_read1_content_length (test.test_httplib.BasicTest) ... ok
test_read_head (test.test_httplib.BasicTest) ... ok
test_readinto_chunked (test.test_httplib.BasicTest) ... ok
test_readinto_chunked_head (test.test_httplib.BasicTest) ... ok
test_readinto_head (test.test_httplib.BasicTest) ... ok
test_readline_bound_content_length (test.test_httplib.BasicTest) ... ok
test_readlines_content_length (test.test_httplib.BasicTest) ... ok
test_response_fileno (test.test_httplib.BasicTest) ... ok
test_response_headers (test.test_httplib.BasicTest) ... ok
test_send (test.test_httplib.BasicTest) ... ok
test_send_file (test.test_httplib.BasicTest) ... ok
test_send_iter (test.test_httplib.BasicTest) ... ok
test_send_type_error (test.test_httplib.BasicTest) ... ok
test_send_updating_file (test.test_httplib.BasicTest) ... ok
test_status_lines (test.test_httplib.BasicTest) ... ok
test_too_many_headers (test.test_httplib.BasicTest) ... ok
test_peek (test.test_httplib.ExtendedReadTest) ... ok
test_peek_0 (test.test_httplib.ExtendedReadTest) ... ok
test_read1 (test.test_httplib.ExtendedReadTest) ... ok
test_read1_0 (test.test_httplib.ExtendedReadTest) ... ok
test_read1_bounded (test.test_httplib.ExtendedReadTest) ... ok
test_read1_unbounded (test.test_httplib.ExtendedReadTest) ... ok
test_readline (test.test_httplib.ExtendedReadTest) ... ok
test_peek (test.test_httplib.ExtendedReadTestChunked) ... ok
test_peek_0 (test.test_httplib.ExtendedReadTestChunked) ... ok
test_read1 (test.test_httplib.ExtendedReadTestChunked) ... ok
test_read1_0 (test.test_httplib.ExtendedReadTestChunked) ... ok
test_read1_bounded (test.test_httplib.ExtendedReadTestChunked) ... ok
test_read1_unbounded (test.test_httplib.ExtendedReadTestChunked) ... ok
test_readline (test.test_httplib.ExtendedReadTestChunked) ... ok
test_getting_header (test.test_httplib.HTTPResponseTest) ... ok
test_getting_header_defaultint (test.test_httplib.HTTPResponseTest) ... ok
test_getting_nonexistent_header_with_iterable_default (test.test_httplib.HTTPResponseTest) ... ok
test_getting_nonexistent_header_with_string_default (test.test_httplib.HTTPResponseTest) ... ok
test_getting_nonexistent_header_without_default (test.test_httplib.HTTPResponseTest) ... ok
test_attributes (test.test_httplib.HTTPSTest) ... ok
test_host_port (test.test_httplib.HTTPSTest) ... ok
test_local_bad_hostname (test.test_httplib.HTTPSTest) ...  server (('127.0.0.1', 64312):64312 ('ECDHE-RSA-AES256-GCM-SHA384', 'TLSv1/SSLv3', 256)):
   [08/May/2019 16:48:13] code 404, message File not found
 server (('127.0.0.1', 64312):64312 ('ECDHE-RSA-AES256-GCM-SHA384', 'TLSv1/SSLv3', 256)):
   [08/May/2019 16:48:13] "GET /nonexistent HTTP/1.1" 404 -
 server (('127.0.0.1', 64312):64312 ('ECDHE-RSA-AES256-GCM-SHA384', 'TLSv1/SSLv3', 256)):
   [08/May/2019 16:48:14] code 404, message File not found
 server (('127.0.0.1', 64312):64312 ('ECDHE-RSA-AES256-GCM-SHA384', 'TLSv1/SSLv3', 256)):
   [08/May/2019 16:48:14] "GET /nonexistent HTTP/1.1" 404 -
stopping HTTPS server
joining HTTPS thread
ok
test_local_good_hostname (test.test_httplib.HTTPSTest) ...  server (('127.0.0.1', 64587):64587 ('ECDHE-RSA-AES256-GCM-SHA384', 'TLSv1/SSLv3', 256)):
   [08/May/2019 16:48:16] code 404, message File not found
 server (('127.0.0.1', 64587):64587 ('ECDHE-RSA-AES256-GCM-SHA384', 'TLSv1/SSLv3', 256)):
   [08/May/2019 16:48:16] "GET /nonexistent HTTP/1.1" 404 -
stopping HTTPS server
joining HTTPS thread
ok
test_local_unknown_cert (test.test_httplib.HTTPSTest) ... Got an error:
[SSL: TLSV1_ALERT_UNKNOWN_CA] tlsv1 alert unknown ca (_ssl.c:852)
stopping HTTPS server
joining HTTPS thread
ok
test_networked (test.test_httplib.HTTPSTest) ... ok
test_networked_bad_cert (test.test_httplib.HTTPSTest) ... ok
test_networked_good_cert (test.test_httplib.HTTPSTest) ... ERROR
test_networked_noverification (test.test_httplib.HTTPSTest) ... ok
test_networked_trusted_by_default_cert (test.test_httplib.HTTPSTest) ... ok
test_auto_headers (test.test_httplib.HeaderTests) ... ok
test_content_length_0 (test.test_httplib.HeaderTests) ... ok
test_headers_debuglevel (test.test_httplib.HeaderTests) ... ok
test_invalid_headers (test.test_httplib.HeaderTests) ... ok
test_ipv6host_header (test.test_httplib.HeaderTests) ... ok
test_malformed_headers_coped_with (test.test_httplib.HeaderTests) ... ok
test_parse_all_octets (test.test_httplib.HeaderTests) ... ok
test_putheader (test.test_httplib.HeaderTests) ... ok
test_all (test.test_httplib.OfflineTest) ... ok
test_client_constants (test.test_httplib.OfflineTest) ... ok
test_responses (test.test_httplib.OfflineTest) ... ok
test_100_close (test.test_httplib.PersistenceTest) ... ok
test_disconnected (test.test_httplib.PersistenceTest) ... ok
test_reuse_reconnect (test.test_httplib.PersistenceTest) ... ok
test_ascii_body (test.test_httplib.RequestBodyTest) ... ok
test_binary_file_body (test.test_httplib.RequestBodyTest) ... ok
test_bytes_body (test.test_httplib.RequestBodyTest) ... ok
test_latin1_body (test.test_httplib.RequestBodyTest) ... ok
test_list_body (test.test_httplib.RequestBodyTest) ... ok
test_manual_content_length (test.test_httplib.RequestBodyTest) ... ok
test_text_file_body (test.test_httplib.RequestBodyTest) ... ok
testHTTPConnectionSourceAddress (test.test_httplib.SourceAddressTest) ... ok
testHTTPSConnectionSourceAddress (test.test_httplib.SourceAddressTest) ... ok
testTimeoutAttribute (test.test_httplib.TimeoutTest) ... ok
test_empty_body (test.test_httplib.TransferEncodingTest) ... ok
test_endheaders_chunked (test.test_httplib.TransferEncodingTest) ... ok
test_explicit_headers (test.test_httplib.TransferEncodingTest) ... ok
test_request (test.test_httplib.TransferEncodingTest) ... ok
test_connect_put_request (test.test_httplib.TunnelTests) ... ok
test_connect_with_tunnel (test.test_httplib.TunnelTests) ... ok
test_disallow_set_tunnel_after_connect (test.test_httplib.TunnelTests) ... ok
test_set_tunnel_host_port_headers (test.test_httplib.TunnelTests) ... ok
test_tunnel_debuglog (test.test_httplib.TunnelTests) ... ok

======================================================================
ERROR: test_networked_good_cert (test.test_httplib.HTTPSTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "D:\buildarea\3.6.ware-win81-release\build\lib\test\test_httplib.py", line 1605, in test_networked_good_cert
    h.request('GET', '/')
  File "D:\buildarea\3.6.ware-win81-release\build\lib\http\client.py", line 1254, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "D:\buildarea\3.6.ware-win81-release\build\lib\http\client.py", line 1300, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "D:\buildarea\3.6.ware-win81-release\build\lib\http\client.py", line 1249, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "D:\buildarea\3.6.ware-win81-release\build\lib\http\client.py", line 1036, in _send_output
    self.send(msg)
  File "D:\buildarea\3.6.ware-win81-release\build\lib\http\client.py", line 974, in send
    self.connect()
  File "D:\buildarea\3.6.ware-win81-release\build\lib\http\client.py", line 1415, in connect
    server_hostname=server_hostname)
  File "D:\buildarea\3.6.ware-win81-release\build\lib\ssl.py", line 407, in wrap_socket
    _context=self, _session=session)
  File "D:\buildarea\3.6.ware-win81-release\build\lib\ssl.py", line 817, in __init__
    self.do_handshake()
  File "D:\buildarea\3.6.ware-win81-release\build\lib\ssl.py", line 1077, in do_handshake
    self._sslobj.do_handshake()
  File "D:\buildarea\3.6.ware-win81-release\build\lib\ssl.py", line 689, in do_handshake
    self._sslobj.do_handshake()
ssl.SSLError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:852)

----------------------------------------------------------------------

Ran 103 tests in 9.094s

FAILED (errors=1)
test test_httplib failed
skipped 'dtrace(1) failed: [WinError 2] The system cannot find the file specified'
skipped 'dtrace(1) failed: [WinError 2] The system cannot find the file specified'
skipped 'stap(1) failed: [WinError 2] The system cannot find the file specified'
skipped 'stap(1) failed: [WinError 2] The system cannot find the file specified'

----------------------------------------------------------------------

Ran 0 tests in 0.000s

OK (skipped=4)
Got an error:
[WinError 10054] An existing connection was forcibly closed by the remote host
test test_httplib failed

Could Not Find D:\buildarea\3.6.ware-win81-release\build\PCbuild\python*.zip

@bedevere-bot
Copy link

⚠️⚠️⚠️ Buildbot failure ⚠️⚠️⚠️

Hi! The buildbot s390x SLES 3.6 has failed when building commit c50d437.

What do you need to do:

  1. Don't panic.
  2. Check the buildbot page in the devguide if you don't know what the buildbots are or how they work.
  3. Go to the page of the buildbot that failed (https://buildbot.python.org/all/#builders/54/builds/802) and take a look at the build logs.
  4. Check if the failure is related to this commit (c50d437) or if it is a false positive.
  5. If the failure is related to this commit, please, reflect that on the issue and make a new Pull Request with a fix.

You can take a look at the buildbot page here:

https://buildbot.python.org/all/#builders/54/builds/802

Click to see traceback logs
Traceback (most recent call last):
  File "/home/dje/cpython-buildarea/3.6.edelsohn-sles-z/build/Lib/test/test_httplib.py", line 1605, in test_networked_good_cert
    h.request('GET', '/')
  File "/home/dje/cpython-buildarea/3.6.edelsohn-sles-z/build/Lib/http/client.py", line 1254, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/home/dje/cpython-buildarea/3.6.edelsohn-sles-z/build/Lib/http/client.py", line 1300, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/home/dje/cpython-buildarea/3.6.edelsohn-sles-z/build/Lib/http/client.py", line 1249, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/home/dje/cpython-buildarea/3.6.edelsohn-sles-z/build/Lib/http/client.py", line 1036, in _send_output
    self.send(msg)
  File "/home/dje/cpython-buildarea/3.6.edelsohn-sles-z/build/Lib/http/client.py", line 974, in send
    self.connect()
  File "/home/dje/cpython-buildarea/3.6.edelsohn-sles-z/build/Lib/http/client.py", line 1415, in connect
    server_hostname=server_hostname)
  File "/home/dje/cpython-buildarea/3.6.edelsohn-sles-z/build/Lib/ssl.py", line 407, in wrap_socket
    _context=self, _session=session)
  File "/home/dje/cpython-buildarea/3.6.edelsohn-sles-z/build/Lib/ssl.py", line 817, in __init__
    self.do_handshake()
  File "/home/dje/cpython-buildarea/3.6.edelsohn-sles-z/build/Lib/ssl.py", line 1077, in do_handshake
    self._sslobj.do_handshake()
  File "/home/dje/cpython-buildarea/3.6.edelsohn-sles-z/build/Lib/ssl.py", line 689, in do_handshake
    self._sslobj.do_handshake()
ssl.SSLError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:852)

----------------------------------------------------------------------

Ran 103 tests in 0.434s

FAILED (errors=1)


Traceback (most recent call last):
  File "/home/dje/cpython-buildarea/3.6.edelsohn-sles-z/build/Lib/test/test_httplib.py", line 1605, in test_networked_good_cert
    h.request('GET', '/')
  File "/home/dje/cpython-buildarea/3.6.edelsohn-sles-z/build/Lib/http/client.py", line 1254, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/home/dje/cpython-buildarea/3.6.edelsohn-sles-z/build/Lib/http/client.py", line 1300, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/home/dje/cpython-buildarea/3.6.edelsohn-sles-z/build/Lib/http/client.py", line 1249, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/home/dje/cpython-buildarea/3.6.edelsohn-sles-z/build/Lib/http/client.py", line 1036, in _send_output
    self.send(msg)
  File "/home/dje/cpython-buildarea/3.6.edelsohn-sles-z/build/Lib/http/client.py", line 974, in send
    self.connect()
  File "/home/dje/cpython-buildarea/3.6.edelsohn-sles-z/build/Lib/http/client.py", line 1415, in connect
    server_hostname=server_hostname)
  File "/home/dje/cpython-buildarea/3.6.edelsohn-sles-z/build/Lib/ssl.py", line 407, in wrap_socket
    _context=self, _session=session)
  File "/home/dje/cpython-buildarea/3.6.edelsohn-sles-z/build/Lib/ssl.py", line 817, in __init__
    self.do_handshake()
  File "/home/dje/cpython-buildarea/3.6.edelsohn-sles-z/build/Lib/ssl.py", line 1077, in do_handshake
    self._sslobj.do_handshake()
  File "/home/dje/cpython-buildarea/3.6.edelsohn-sles-z/build/Lib/ssl.py", line 689, in do_handshake
    self._sslobj.do_handshake()
ssl.SSLError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:852)

----------------------------------------------------------------------

Ran 103 tests in 0.353s

FAILED (errors=1)

@bedevere-bot
Copy link

⚠️⚠️⚠️ Buildbot failure ⚠️⚠️⚠️

Hi! The buildbot AMD64 Windows10 3.6 has failed when building commit c50d437.

What do you need to do:

  1. Don't panic.
  2. Check the buildbot page in the devguide if you don't know what the buildbots are or how they work.
  3. Go to the page of the buildbot that failed (https://buildbot.python.org/all/#builders/31/builds/744) and take a look at the build logs.
  4. Check if the failure is related to this commit (c50d437) or if it is a false positive.
  5. If the failure is related to this commit, please, reflect that on the issue and make a new Pull Request with a fix.

You can take a look at the buildbot page here:

https://buildbot.python.org/all/#builders/31/builds/744

Click to see traceback logs
From https://github.com/python/cpython
 * branch            3.6        -> FETCH_HEAD
 * [new tag]         3.4        -> 3.4
 * [new tag]         v3.8.0a4   -> v3.8.0a4
Reset branch '3.6'

Could Not Find D:\buildarea\3.6.bolen-windows10\build\Lib\*.pyc
The system cannot find the file specified.
Could Not Find D:\buildarea\3.6.bolen-windows10\build\PCbuild\python*.zip

stty: standard input: Inappropriate ioctl for device
test_pty skipped -- No module named 'termios'
test_poll skipped -- select.poll not defined
test_readline skipped -- No module named 'readline'
test_spwd skipped -- No module named 'spwd'
skipped 'dtrace(1) failed: [WinError 2] The system cannot find the file specified'
skipped 'dtrace(1) failed: [WinError 2] The system cannot find the file specified'
skipped 'stap(1) failed: [WinError 2] The system cannot find the file specified'
skipped 'stap(1) failed: [WinError 2] The system cannot find the file specified'

----------------------------------------------------------------------

Ran 0 tests in 0.000s

OK (skipped=4)
test_crypt skipped -- No module named '_crypt'
test_multiprocessing_fork skipped -- fork is not available on Windows
test_wait3 skipped -- os.fork not defined
test_devpoll skipped -- test works only on Solaris OS family
minkernel\crts\ucrt\src\appcrt\lowio\write.cpp(49) : Assertion failed: (_osfile(fh) & FOPEN)
minkernel\crts\ucrt\src\appcrt\lowio\close.cpp(49) : Assertion failed: (_osfile(fh) & FOPEN)
minkernel\crts\ucrt\src\appcrt\lowio\close.cpp(49) : Assertion failed: (_osfile(fh) & FOPEN)
test_resource skipped -- No module named 'resource'
test_gdb skipped -- Couldn't find gdb on the path
test_syslog skipped -- No module named 'syslog'
test_ossaudiodev skipped -- No module named 'ossaudiodev'
test_bad_status_repr (test.test_httplib.BasicTest) ... ok
test_chunked (test.test_httplib.BasicTest) ... ok
test_chunked_extension (test.test_httplib.BasicTest) ... ok
test_chunked_head (test.test_httplib.BasicTest) ... ok
test_chunked_missing_end (test.test_httplib.BasicTest)
some servers may serve up a short chunked encoding stream ... ok
test_chunked_sync (test.test_httplib.BasicTest)
Check that we don't read past the end of the chunked-encoding stream ... ok
test_chunked_trailers (test.test_httplib.BasicTest)
See that trailers are read and ignored ... ok
test_content_length_sync (test.test_httplib.BasicTest)
Check that we don't read past the end of the Content-Length stream ... ok
test_early_eof (test.test_httplib.BasicTest) ... ok
test_epipe (test.test_httplib.BasicTest) ... ok
test_error_leak (test.test_httplib.BasicTest) ... ok
test_host_port (test.test_httplib.BasicTest) ... ok
test_incomplete_read (test.test_httplib.BasicTest) ... ok
test_mixed_reads (test.test_httplib.BasicTest) ... ok
test_negative_content_length (test.test_httplib.BasicTest) ... ok
test_overflowing_chunked_line (test.test_httplib.BasicTest) ... ok
test_overflowing_header_line (test.test_httplib.BasicTest) ... ok
test_overflowing_status_line (test.test_httplib.BasicTest) ... ok
test_partial_readintos (test.test_httplib.BasicTest) ... ok
test_partial_readintos_incomplete_body (test.test_httplib.BasicTest) ... ok
test_partial_readintos_no_content_length (test.test_httplib.BasicTest) ... ok
test_partial_reads (test.test_httplib.BasicTest) ... ok
test_partial_reads_incomplete_body (test.test_httplib.BasicTest) ... ok
test_partial_reads_no_content_length (test.test_httplib.BasicTest) ... ok
test_read1_bound_content_length (test.test_httplib.BasicTest) ... ok
test_read1_content_length (test.test_httplib.BasicTest) ... ok
test_read_head (test.test_httplib.BasicTest) ... ok
test_readinto_chunked (test.test_httplib.BasicTest) ... ok
test_readinto_chunked_head (test.test_httplib.BasicTest) ... ok
test_readinto_head (test.test_httplib.BasicTest) ... ok
test_readline_bound_content_length (test.test_httplib.BasicTest) ... ok
test_readlines_content_length (test.test_httplib.BasicTest) ... ok
test_response_fileno (test.test_httplib.BasicTest) ... ok
test_response_headers (test.test_httplib.BasicTest) ... ok
test_send (test.test_httplib.BasicTest) ... ok
test_send_file (test.test_httplib.BasicTest) ... ok
test_send_iter (test.test_httplib.BasicTest) ... ok
test_send_type_error (test.test_httplib.BasicTest) ... ok
test_send_updating_file (test.test_httplib.BasicTest) ... ok
test_status_lines (test.test_httplib.BasicTest) ... ok
test_too_many_headers (test.test_httplib.BasicTest) ... ok
test_peek (test.test_httplib.ExtendedReadTest) ... ok
test_peek_0 (test.test_httplib.ExtendedReadTest) ... ok
test_read1 (test.test_httplib.ExtendedReadTest) ... ok
test_read1_0 (test.test_httplib.ExtendedReadTest) ... ok
test_read1_bounded (test.test_httplib.ExtendedReadTest) ... ok
test_read1_unbounded (test.test_httplib.ExtendedReadTest) ... ok
test_readline (test.test_httplib.ExtendedReadTest) ... ok
test_peek (test.test_httplib.ExtendedReadTestChunked) ... ok
test_peek_0 (test.test_httplib.ExtendedReadTestChunked) ... ok
test_read1 (test.test_httplib.ExtendedReadTestChunked) ... ok
test_read1_0 (test.test_httplib.ExtendedReadTestChunked) ... ok
test_read1_bounded (test.test_httplib.ExtendedReadTestChunked) ... ok
test_read1_unbounded (test.test_httplib.ExtendedReadTestChunked) ... ok
test_readline (test.test_httplib.ExtendedReadTestChunked) ... ok
test_getting_header (test.test_httplib.HTTPResponseTest) ... ok
test_getting_header_defaultint (test.test_httplib.HTTPResponseTest) ... ok
test_getting_nonexistent_header_with_iterable_default (test.test_httplib.HTTPResponseTest) ... ok
test_getting_nonexistent_header_with_string_default (test.test_httplib.HTTPResponseTest) ... ok
test_getting_nonexistent_header_without_default (test.test_httplib.HTTPResponseTest) ... ok
test_attributes (test.test_httplib.HTTPSTest) ... ok
test_host_port (test.test_httplib.HTTPSTest) ... ok
test_local_bad_hostname (test.test_httplib.HTTPSTest) ...  server (('127.0.0.1', 58996):58996 ('ECDHE-RSA-AES256-GCM-SHA384', 'TLSv1/SSLv3', 256)):
   [08/May/2019 12:51:04] code 404, message File not found
 server (('127.0.0.1', 58996):58996 ('ECDHE-RSA-AES256-GCM-SHA384', 'TLSv1/SSLv3', 256)):
   [08/May/2019 12:51:04] "GET /nonexistent HTTP/1.1" 404 -
 server (('127.0.0.1', 58996):58996 ('ECDHE-RSA-AES256-GCM-SHA384', 'TLSv1/SSLv3', 256)):
   [08/May/2019 12:51:05] code 404, message File not found
 server (('127.0.0.1', 58996):58996 ('ECDHE-RSA-AES256-GCM-SHA384', 'TLSv1/SSLv3', 256)):
   [08/May/2019 12:51:05] "GET /nonexistent HTTP/1.1" 404 -
stopping HTTPS server
joining HTTPS thread
ok
test_local_good_hostname (test.test_httplib.HTTPSTest) ...  server (('127.0.0.1', 59007):59007 ('ECDHE-RSA-AES256-GCM-SHA384', 'TLSv1/SSLv3', 256)):
   [08/May/2019 12:51:08] code 404, message File not found
 server (('127.0.0.1', 59007):59007 ('ECDHE-RSA-AES256-GCM-SHA384', 'TLSv1/SSLv3', 256)):
   [08/May/2019 12:51:08] "GET /nonexistent HTTP/1.1" 404 -
stopping HTTPS server
joining HTTPS thread
ok
test_local_unknown_cert (test.test_httplib.HTTPSTest) ... stopping HTTPS server
Got an error:
[WinError 10054] An existing connection was forcibly closed by the remote host
joining HTTPS thread
ok
test_networked (test.test_httplib.HTTPSTest) ... ok
test_networked_bad_cert (test.test_httplib.HTTPSTest) ... ok
test_networked_good_cert (test.test_httplib.HTTPSTest) ... ERROR
test_networked_noverification (test.test_httplib.HTTPSTest) ... ok
test_networked_trusted_by_default_cert (test.test_httplib.HTTPSTest) ... ok
test_auto_headers (test.test_httplib.HeaderTests) ... ok
test_content_length_0 (test.test_httplib.HeaderTests) ... ok
test_headers_debuglevel (test.test_httplib.HeaderTests) ... ok
test_invalid_headers (test.test_httplib.HeaderTests) ... ok
test_ipv6host_header (test.test_httplib.HeaderTests) ... ok
test_malformed_headers_coped_with (test.test_httplib.HeaderTests) ... ok
test_parse_all_octets (test.test_httplib.HeaderTests) ... ok
test_putheader (test.test_httplib.HeaderTests) ... ok
test_all (test.test_httplib.OfflineTest) ... ok
test_client_constants (test.test_httplib.OfflineTest) ... ok
test_responses (test.test_httplib.OfflineTest) ... ok
test_100_close (test.test_httplib.PersistenceTest) ... ok
test_disconnected (test.test_httplib.PersistenceTest) ... ok
test_reuse_reconnect (test.test_httplib.PersistenceTest) ... ok
test_ascii_body (test.test_httplib.RequestBodyTest) ... ok
test_binary_file_body (test.test_httplib.RequestBodyTest) ... ok
test_bytes_body (test.test_httplib.RequestBodyTest) ... ok
test_latin1_body (test.test_httplib.RequestBodyTest) ... ok
test_list_body (test.test_httplib.RequestBodyTest) ... ok
test_manual_content_length (test.test_httplib.RequestBodyTest) ... ok
test_text_file_body (test.test_httplib.RequestBodyTest) ... ok
testHTTPConnectionSourceAddress (test.test_httplib.SourceAddressTest) ... ok
testHTTPSConnectionSourceAddress (test.test_httplib.SourceAddressTest) ... ok
testTimeoutAttribute (test.test_httplib.TimeoutTest) ... ok
test_empty_body (test.test_httplib.TransferEncodingTest) ... ok
test_endheaders_chunked (test.test_httplib.TransferEncodingTest) ... ok
test_explicit_headers (test.test_httplib.TransferEncodingTest) ... ok
test_request (test.test_httplib.TransferEncodingTest) ... ok
test_connect_put_request (test.test_httplib.TunnelTests) ... ok
test_connect_with_tunnel (test.test_httplib.TunnelTests) ... ok
test_disallow_set_tunnel_after_connect (test.test_httplib.TunnelTests) ... ok
test_set_tunnel_host_port_headers (test.test_httplib.TunnelTests) ... ok
test_tunnel_debuglog (test.test_httplib.TunnelTests) ... ok

======================================================================
ERROR: test_networked_good_cert (test.test_httplib.HTTPSTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "D:\buildarea\3.6.bolen-windows10\build\lib\test\test_httplib.py", line 1605, in test_networked_good_cert
    h.request('GET', '/')
  File "D:\buildarea\3.6.bolen-windows10\build\lib\http\client.py", line 1254, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "D:\buildarea\3.6.bolen-windows10\build\lib\http\client.py", line 1300, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "D:\buildarea\3.6.bolen-windows10\build\lib\http\client.py", line 1249, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "D:\buildarea\3.6.bolen-windows10\build\lib\http\client.py", line 1036, in _send_output
    self.send(msg)
  File "D:\buildarea\3.6.bolen-windows10\build\lib\http\client.py", line 974, in send
    self.connect()
  File "D:\buildarea\3.6.bolen-windows10\build\lib\http\client.py", line 1415, in connect
    server_hostname=server_hostname)
  File "D:\buildarea\3.6.bolen-windows10\build\lib\ssl.py", line 407, in wrap_socket
    _context=self, _session=session)
  File "D:\buildarea\3.6.bolen-windows10\build\lib\ssl.py", line 817, in __init__
    self.do_handshake()
  File "D:\buildarea\3.6.bolen-windows10\build\lib\ssl.py", line 1077, in do_handshake
    self._sslobj.do_handshake()
  File "D:\buildarea\3.6.bolen-windows10\build\lib\ssl.py", line 689, in do_handshake
    self._sslobj.do_handshake()
ssl.SSLError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:852)

----------------------------------------------------------------------

Ran 103 tests in 9.094s

FAILED (errors=1)
test test_httplib failed
test_grp skipped -- No module named 'grp'
test_nis skipped -- No module named 'nis'
test_wait4 skipped -- object <module 'os' from 'D:\\buildarea\\3.6.bolen-windows10\\build\\lib\\os.py'> has no attribute 'fork'
test_fcntl skipped -- No module named 'fcntl'
test_pipes skipped -- pipes module only works on posix

----------------------------------------------------------------------

Ran 0 tests in 0.000s

OK
test_dbm_gnu skipped -- No module named '_gdbm'
test_fork1 skipped -- object <module 'os' from 'D:\\buildarea\\3.6.bolen-windows10\\build\\lib\\os.py'> has no attribute 'fork'
test_kqueue skipped -- test works only on BSD
test_ioctl skipped -- No module named 'fcntl'
test_multiprocessing_forkserver skipped -- forkserver is not available on Windows
test_posix skipped -- No module named 'posix'
test_pwd skipped -- No module named 'pwd'
test_threadsignals skipped -- Can't test signal on win32
test_dbm_ndbm skipped -- No module named '_dbm'
test_openpty skipped -- os.openpty() not available.
minkernel\crts\ucrt\src\appcrt\lowio\write.cpp(49) : Assertion failed: (_osfile(fh) & FOPEN)
test_curses skipped -- No module named '_curses'
test_zipfile64 skipped -- test requires loads of disk-space bytes and a long time to run
test_epoll skipped -- test works only on Linux 2.6
Got an error:
[SSL: TLSV1_ALERT_UNKNOWN_CA] tlsv1 alert unknown ca (_ssl.c:852)
test test_httplib failed

Could Not Find D:\buildarea\3.6.bolen-windows10\build\PCbuild\python*.zip

@bedevere-bot
Copy link

⚠️⚠️⚠️ Buildbot failure ⚠️⚠️⚠️

Hi! The buildbot AMD64 Debian root 3.6 has failed when building commit c50d437.

What do you need to do:

  1. Don't panic.
  2. Check the buildbot page in the devguide if you don't know what the buildbots are or how they work.
  3. Go to the page of the buildbot that failed (https://buildbot.python.org/all/#builders/37/builds/795) and take a look at the build logs.
  4. Check if the failure is related to this commit (c50d437) or if it is a false positive.
  5. If the failure is related to this commit, please, reflect that on the issue and make a new Pull Request with a fix.

You can take a look at the buildbot page here:

https://buildbot.python.org/all/#builders/37/builds/795

Click to see traceback logs
Traceback (most recent call last):
  File "/root/buildarea/3.6.angelico-debian-amd64/build/Lib/test/test_httplib.py", line 1605, in test_networked_good_cert
    h.request('GET', '/')
  File "/root/buildarea/3.6.angelico-debian-amd64/build/Lib/http/client.py", line 1254, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/root/buildarea/3.6.angelico-debian-amd64/build/Lib/http/client.py", line 1300, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/root/buildarea/3.6.angelico-debian-amd64/build/Lib/http/client.py", line 1249, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/root/buildarea/3.6.angelico-debian-amd64/build/Lib/http/client.py", line 1036, in _send_output
    self.send(msg)
  File "/root/buildarea/3.6.angelico-debian-amd64/build/Lib/http/client.py", line 974, in send
    self.connect()
  File "/root/buildarea/3.6.angelico-debian-amd64/build/Lib/http/client.py", line 1415, in connect
    server_hostname=server_hostname)
  File "/root/buildarea/3.6.angelico-debian-amd64/build/Lib/ssl.py", line 407, in wrap_socket
    _context=self, _session=session)
  File "/root/buildarea/3.6.angelico-debian-amd64/build/Lib/ssl.py", line 817, in __init__
    self.do_handshake()
  File "/root/buildarea/3.6.angelico-debian-amd64/build/Lib/ssl.py", line 1077, in do_handshake
    self._sslobj.do_handshake()
  File "/root/buildarea/3.6.angelico-debian-amd64/build/Lib/ssl.py", line 689, in do_handshake
    self._sslobj.do_handshake()
ssl.SSLError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:852)

----------------------------------------------------------------------

Ran 103 tests in 3.012s

FAILED (errors=1)


Traceback (most recent call last):
  File "/root/buildarea/3.6.angelico-debian-amd64/build/Lib/test/test_httplib.py", line 1605, in test_networked_good_cert
    h.request('GET', '/')
  File "/root/buildarea/3.6.angelico-debian-amd64/build/Lib/http/client.py", line 1254, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/root/buildarea/3.6.angelico-debian-amd64/build/Lib/http/client.py", line 1300, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/root/buildarea/3.6.angelico-debian-amd64/build/Lib/http/client.py", line 1249, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/root/buildarea/3.6.angelico-debian-amd64/build/Lib/http/client.py", line 1036, in _send_output
    self.send(msg)
  File "/root/buildarea/3.6.angelico-debian-amd64/build/Lib/http/client.py", line 974, in send
    self.connect()
  File "/root/buildarea/3.6.angelico-debian-amd64/build/Lib/http/client.py", line 1415, in connect
    server_hostname=server_hostname)
  File "/root/buildarea/3.6.angelico-debian-amd64/build/Lib/ssl.py", line 407, in wrap_socket
    _context=self, _session=session)
  File "/root/buildarea/3.6.angelico-debian-amd64/build/Lib/ssl.py", line 817, in __init__
    self.do_handshake()
  File "/root/buildarea/3.6.angelico-debian-amd64/build/Lib/ssl.py", line 1077, in do_handshake
    self._sslobj.do_handshake()
  File "/root/buildarea/3.6.angelico-debian-amd64/build/Lib/ssl.py", line 689, in do_handshake
    self._sslobj.do_handshake()
ssl.SSLError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:852)

----------------------------------------------------------------------

Ran 103 tests in 3.022s

FAILED (errors=1)

@bedevere-bot
Copy link

⚠️⚠️⚠️ Buildbot failure ⚠️⚠️⚠️

Hi! The buildbot s390x RHEL 3.6 has failed when building commit c50d437.

What do you need to do:

  1. Don't panic.
  2. Check the buildbot page in the devguide if you don't know what the buildbots are or how they work.
  3. Go to the page of the buildbot that failed (https://buildbot.python.org/all/#builders/29/builds/799) and take a look at the build logs.
  4. Check if the failure is related to this commit (c50d437) or if it is a false positive.
  5. If the failure is related to this commit, please, reflect that on the issue and make a new Pull Request with a fix.

You can take a look at the buildbot page here:

https://buildbot.python.org/all/#builders/29/builds/799

Click to see traceback logs
Traceback (most recent call last):
  File "/home/dje/cpython-buildarea/3.6.edelsohn-rhel-z/build/Lib/test/test_httplib.py", line 1605, in test_networked_good_cert
    h.request('GET', '/')
  File "/home/dje/cpython-buildarea/3.6.edelsohn-rhel-z/build/Lib/http/client.py", line 1254, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/home/dje/cpython-buildarea/3.6.edelsohn-rhel-z/build/Lib/http/client.py", line 1300, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/home/dje/cpython-buildarea/3.6.edelsohn-rhel-z/build/Lib/http/client.py", line 1249, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/home/dje/cpython-buildarea/3.6.edelsohn-rhel-z/build/Lib/http/client.py", line 1036, in _send_output
    self.send(msg)
  File "/home/dje/cpython-buildarea/3.6.edelsohn-rhel-z/build/Lib/http/client.py", line 974, in send
    self.connect()
  File "/home/dje/cpython-buildarea/3.6.edelsohn-rhel-z/build/Lib/http/client.py", line 1415, in connect
    server_hostname=server_hostname)
  File "/home/dje/cpython-buildarea/3.6.edelsohn-rhel-z/build/Lib/ssl.py", line 407, in wrap_socket
    _context=self, _session=session)
  File "/home/dje/cpython-buildarea/3.6.edelsohn-rhel-z/build/Lib/ssl.py", line 817, in __init__
    self.do_handshake()
  File "/home/dje/cpython-buildarea/3.6.edelsohn-rhel-z/build/Lib/ssl.py", line 1077, in do_handshake
    self._sslobj.do_handshake()
  File "/home/dje/cpython-buildarea/3.6.edelsohn-rhel-z/build/Lib/ssl.py", line 689, in do_handshake
    self._sslobj.do_handshake()
ssl.SSLError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:852)

----------------------------------------------------------------------

Ran 103 tests in 5.644s

FAILED (errors=1)


Traceback (most recent call last):
  File "/home/dje/cpython-buildarea/3.6.edelsohn-rhel-z/build/Lib/test/test_httplib.py", line 1605, in test_networked_good_cert
    h.request('GET', '/')
  File "/home/dje/cpython-buildarea/3.6.edelsohn-rhel-z/build/Lib/http/client.py", line 1254, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/home/dje/cpython-buildarea/3.6.edelsohn-rhel-z/build/Lib/http/client.py", line 1300, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/home/dje/cpython-buildarea/3.6.edelsohn-rhel-z/build/Lib/http/client.py", line 1249, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/home/dje/cpython-buildarea/3.6.edelsohn-rhel-z/build/Lib/http/client.py", line 1036, in _send_output
    self.send(msg)
  File "/home/dje/cpython-buildarea/3.6.edelsohn-rhel-z/build/Lib/http/client.py", line 974, in send
    self.connect()
  File "/home/dje/cpython-buildarea/3.6.edelsohn-rhel-z/build/Lib/http/client.py", line 1415, in connect
    server_hostname=server_hostname)
  File "/home/dje/cpython-buildarea/3.6.edelsohn-rhel-z/build/Lib/ssl.py", line 407, in wrap_socket
    _context=self, _session=session)
  File "/home/dje/cpython-buildarea/3.6.edelsohn-rhel-z/build/Lib/ssl.py", line 817, in __init__
    self.do_handshake()
  File "/home/dje/cpython-buildarea/3.6.edelsohn-rhel-z/build/Lib/ssl.py", line 1077, in do_handshake
    self._sslobj.do_handshake()
  File "/home/dje/cpython-buildarea/3.6.edelsohn-rhel-z/build/Lib/ssl.py", line 689, in do_handshake
    self._sslobj.do_handshake()
ssl.SSLError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:852)

----------------------------------------------------------------------

Ran 103 tests in 0.632s

FAILED (errors=1)

@bedevere-bot
Copy link

⚠️⚠️⚠️ Buildbot failure ⚠️⚠️⚠️

Hi! The buildbot PPC64 Fedora 3.6 has failed when building commit c50d437.

What do you need to do:

  1. Don't panic.
  2. Check the buildbot page in the devguide if you don't know what the buildbots are or how they work.
  3. Go to the page of the buildbot that failed (https://buildbot.python.org/all/#builders/50/builds/797) and take a look at the build logs.
  4. Check if the failure is related to this commit (c50d437) or if it is a false positive.
  5. If the failure is related to this commit, please, reflect that on the issue and make a new Pull Request with a fix.

You can take a look at the buildbot page here:

https://buildbot.python.org/all/#builders/50/builds/797

Click to see traceback logs
Traceback (most recent call last):
  File "/home/shager/cpython-buildarea/3.6.edelsohn-fedora-ppc64/build/Lib/test/test_httplib.py", line 1605, in test_networked_good_cert
    h.request('GET', '/')
  File "/home/shager/cpython-buildarea/3.6.edelsohn-fedora-ppc64/build/Lib/http/client.py", line 1254, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/home/shager/cpython-buildarea/3.6.edelsohn-fedora-ppc64/build/Lib/http/client.py", line 1300, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/home/shager/cpython-buildarea/3.6.edelsohn-fedora-ppc64/build/Lib/http/client.py", line 1249, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/home/shager/cpython-buildarea/3.6.edelsohn-fedora-ppc64/build/Lib/http/client.py", line 1036, in _send_output
    self.send(msg)
  File "/home/shager/cpython-buildarea/3.6.edelsohn-fedora-ppc64/build/Lib/http/client.py", line 974, in send
    self.connect()
  File "/home/shager/cpython-buildarea/3.6.edelsohn-fedora-ppc64/build/Lib/http/client.py", line 1415, in connect
    server_hostname=server_hostname)
  File "/home/shager/cpython-buildarea/3.6.edelsohn-fedora-ppc64/build/Lib/ssl.py", line 407, in wrap_socket
    _context=self, _session=session)
  File "/home/shager/cpython-buildarea/3.6.edelsohn-fedora-ppc64/build/Lib/ssl.py", line 817, in __init__
    self.do_handshake()
  File "/home/shager/cpython-buildarea/3.6.edelsohn-fedora-ppc64/build/Lib/ssl.py", line 1077, in do_handshake
    self._sslobj.do_handshake()
  File "/home/shager/cpython-buildarea/3.6.edelsohn-fedora-ppc64/build/Lib/ssl.py", line 689, in do_handshake
    self._sslobj.do_handshake()
ssl.SSLError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:852)

----------------------------------------------------------------------

Ran 103 tests in 1.374s

FAILED (errors=1)


Traceback (most recent call last):
  File "/home/shager/cpython-buildarea/3.6.edelsohn-fedora-ppc64/build/Lib/test/test_httplib.py", line 1605, in test_networked_good_cert
    h.request('GET', '/')
  File "/home/shager/cpython-buildarea/3.6.edelsohn-fedora-ppc64/build/Lib/http/client.py", line 1254, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/home/shager/cpython-buildarea/3.6.edelsohn-fedora-ppc64/build/Lib/http/client.py", line 1300, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/home/shager/cpython-buildarea/3.6.edelsohn-fedora-ppc64/build/Lib/http/client.py", line 1249, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/home/shager/cpython-buildarea/3.6.edelsohn-fedora-ppc64/build/Lib/http/client.py", line 1036, in _send_output
    self.send(msg)
  File "/home/shager/cpython-buildarea/3.6.edelsohn-fedora-ppc64/build/Lib/http/client.py", line 974, in send
    self.connect()
  File "/home/shager/cpython-buildarea/3.6.edelsohn-fedora-ppc64/build/Lib/http/client.py", line 1415, in connect
    server_hostname=server_hostname)
  File "/home/shager/cpython-buildarea/3.6.edelsohn-fedora-ppc64/build/Lib/ssl.py", line 407, in wrap_socket
    _context=self, _session=session)
  File "/home/shager/cpython-buildarea/3.6.edelsohn-fedora-ppc64/build/Lib/ssl.py", line 817, in __init__
    self.do_handshake()
  File "/home/shager/cpython-buildarea/3.6.edelsohn-fedora-ppc64/build/Lib/ssl.py", line 1077, in do_handshake
    self._sslobj.do_handshake()
  File "/home/shager/cpython-buildarea/3.6.edelsohn-fedora-ppc64/build/Lib/ssl.py", line 689, in do_handshake
    self._sslobj.do_handshake()
ssl.SSLError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:852)

----------------------------------------------------------------------

Ran 103 tests in 1.336s

FAILED (errors=1)

@bedevere-bot
Copy link

⚠️⚠️⚠️ Buildbot failure ⚠️⚠️⚠️

Hi! The buildbot PPC64LE Fedora 3.6 has failed when building commit c50d437.

What do you need to do:

  1. Don't panic.
  2. Check the buildbot page in the devguide if you don't know what the buildbots are or how they work.
  3. Go to the page of the buildbot that failed (https://buildbot.python.org/all/#builders/83/builds/724) and take a look at the build logs.
  4. Check if the failure is related to this commit (c50d437) or if it is a false positive.
  5. If the failure is related to this commit, please, reflect that on the issue and make a new Pull Request with a fix.

You can take a look at the buildbot page here:

https://buildbot.python.org/all/#builders/83/builds/724

Click to see traceback logs
Traceback (most recent call last):
  File "/home/shager/cpython-buildarea/3.6.edelsohn-fedora-ppc64le/build/Lib/test/test_httplib.py", line 1605, in test_networked_good_cert
    h.request('GET', '/')
  File "/home/shager/cpython-buildarea/3.6.edelsohn-fedora-ppc64le/build/Lib/http/client.py", line 1254, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/home/shager/cpython-buildarea/3.6.edelsohn-fedora-ppc64le/build/Lib/http/client.py", line 1300, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/home/shager/cpython-buildarea/3.6.edelsohn-fedora-ppc64le/build/Lib/http/client.py", line 1249, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/home/shager/cpython-buildarea/3.6.edelsohn-fedora-ppc64le/build/Lib/http/client.py", line 1036, in _send_output
    self.send(msg)
  File "/home/shager/cpython-buildarea/3.6.edelsohn-fedora-ppc64le/build/Lib/http/client.py", line 974, in send
    self.connect()
  File "/home/shager/cpython-buildarea/3.6.edelsohn-fedora-ppc64le/build/Lib/http/client.py", line 1415, in connect
    server_hostname=server_hostname)
  File "/home/shager/cpython-buildarea/3.6.edelsohn-fedora-ppc64le/build/Lib/ssl.py", line 407, in wrap_socket
    _context=self, _session=session)
  File "/home/shager/cpython-buildarea/3.6.edelsohn-fedora-ppc64le/build/Lib/ssl.py", line 817, in __init__
    self.do_handshake()
  File "/home/shager/cpython-buildarea/3.6.edelsohn-fedora-ppc64le/build/Lib/ssl.py", line 1077, in do_handshake
    self._sslobj.do_handshake()
  File "/home/shager/cpython-buildarea/3.6.edelsohn-fedora-ppc64le/build/Lib/ssl.py", line 689, in do_handshake
    self._sslobj.do_handshake()
ssl.SSLError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:852)

----------------------------------------------------------------------

Ran 103 tests in 1.520s

FAILED (errors=1)


Traceback (most recent call last):
  File "/home/shager/cpython-buildarea/3.6.edelsohn-fedora-ppc64le/build/Lib/test/test_httplib.py", line 1605, in test_networked_good_cert
    h.request('GET', '/')
  File "/home/shager/cpython-buildarea/3.6.edelsohn-fedora-ppc64le/build/Lib/http/client.py", line 1254, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/home/shager/cpython-buildarea/3.6.edelsohn-fedora-ppc64le/build/Lib/http/client.py", line 1300, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/home/shager/cpython-buildarea/3.6.edelsohn-fedora-ppc64le/build/Lib/http/client.py", line 1249, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/home/shager/cpython-buildarea/3.6.edelsohn-fedora-ppc64le/build/Lib/http/client.py", line 1036, in _send_output
    self.send(msg)
  File "/home/shager/cpython-buildarea/3.6.edelsohn-fedora-ppc64le/build/Lib/http/client.py", line 974, in send
    self.connect()
  File "/home/shager/cpython-buildarea/3.6.edelsohn-fedora-ppc64le/build/Lib/http/client.py", line 1415, in connect
    server_hostname=server_hostname)
  File "/home/shager/cpython-buildarea/3.6.edelsohn-fedora-ppc64le/build/Lib/ssl.py", line 407, in wrap_socket
    _context=self, _session=session)
  File "/home/shager/cpython-buildarea/3.6.edelsohn-fedora-ppc64le/build/Lib/ssl.py", line 817, in __init__
    self.do_handshake()
  File "/home/shager/cpython-buildarea/3.6.edelsohn-fedora-ppc64le/build/Lib/ssl.py", line 1077, in do_handshake
    self._sslobj.do_handshake()
  File "/home/shager/cpython-buildarea/3.6.edelsohn-fedora-ppc64le/build/Lib/ssl.py", line 689, in do_handshake
    self._sslobj.do_handshake()
ssl.SSLError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:852)

----------------------------------------------------------------------

Ran 103 tests in 1.411s

FAILED (errors=1)

@bedevere-bot
Copy link

⚠️⚠️⚠️ Buildbot failure ⚠️⚠️⚠️

Hi! The buildbot s390x Debian 3.6 has failed when building commit c50d437.

What do you need to do:

  1. Don't panic.
  2. Check the buildbot page in the devguide if you don't know what the buildbots are or how they work.
  3. Go to the page of the buildbot that failed (https://buildbot.python.org/all/#builders/63/builds/822) and take a look at the build logs.
  4. Check if the failure is related to this commit (c50d437) or if it is a false positive.
  5. If the failure is related to this commit, please, reflect that on the issue and make a new Pull Request with a fix.

You can take a look at the buildbot page here:

https://buildbot.python.org/all/#builders/63/builds/822

Click to see traceback logs
Traceback (most recent call last):
  File "/home/dje/cpython-buildarea/3.6.edelsohn-debian-z/build/Lib/test/test_httplib.py", line 1605, in test_networked_good_cert
    h.request('GET', '/')
  File "/home/dje/cpython-buildarea/3.6.edelsohn-debian-z/build/Lib/http/client.py", line 1254, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/home/dje/cpython-buildarea/3.6.edelsohn-debian-z/build/Lib/http/client.py", line 1300, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/home/dje/cpython-buildarea/3.6.edelsohn-debian-z/build/Lib/http/client.py", line 1249, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/home/dje/cpython-buildarea/3.6.edelsohn-debian-z/build/Lib/http/client.py", line 1036, in _send_output
    self.send(msg)
  File "/home/dje/cpython-buildarea/3.6.edelsohn-debian-z/build/Lib/http/client.py", line 974, in send
    self.connect()
  File "/home/dje/cpython-buildarea/3.6.edelsohn-debian-z/build/Lib/http/client.py", line 1415, in connect
    server_hostname=server_hostname)
  File "/home/dje/cpython-buildarea/3.6.edelsohn-debian-z/build/Lib/ssl.py", line 407, in wrap_socket
    _context=self, _session=session)
  File "/home/dje/cpython-buildarea/3.6.edelsohn-debian-z/build/Lib/ssl.py", line 817, in __init__
    self.do_handshake()
  File "/home/dje/cpython-buildarea/3.6.edelsohn-debian-z/build/Lib/ssl.py", line 1077, in do_handshake
    self._sslobj.do_handshake()
  File "/home/dje/cpython-buildarea/3.6.edelsohn-debian-z/build/Lib/ssl.py", line 689, in do_handshake
    self._sslobj.do_handshake()
ssl.SSLError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:852)

----------------------------------------------------------------------

Ran 103 tests in 0.429s

FAILED (errors=1)


Traceback (most recent call last):
  File "/home/dje/cpython-buildarea/3.6.edelsohn-debian-z/build/Lib/test/test_httplib.py", line 1605, in test_networked_good_cert
    h.request('GET', '/')
  File "/home/dje/cpython-buildarea/3.6.edelsohn-debian-z/build/Lib/http/client.py", line 1254, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/home/dje/cpython-buildarea/3.6.edelsohn-debian-z/build/Lib/http/client.py", line 1300, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/home/dje/cpython-buildarea/3.6.edelsohn-debian-z/build/Lib/http/client.py", line 1249, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/home/dje/cpython-buildarea/3.6.edelsohn-debian-z/build/Lib/http/client.py", line 1036, in _send_output
    self.send(msg)
  File "/home/dje/cpython-buildarea/3.6.edelsohn-debian-z/build/Lib/http/client.py", line 974, in send
    self.connect()
  File "/home/dje/cpython-buildarea/3.6.edelsohn-debian-z/build/Lib/http/client.py", line 1415, in connect
    server_hostname=server_hostname)
  File "/home/dje/cpython-buildarea/3.6.edelsohn-debian-z/build/Lib/ssl.py", line 407, in wrap_socket
    _context=self, _session=session)
  File "/home/dje/cpython-buildarea/3.6.edelsohn-debian-z/build/Lib/ssl.py", line 817, in __init__
    self.do_handshake()
  File "/home/dje/cpython-buildarea/3.6.edelsohn-debian-z/build/Lib/ssl.py", line 1077, in do_handshake
    self._sslobj.do_handshake()
  File "/home/dje/cpython-buildarea/3.6.edelsohn-debian-z/build/Lib/ssl.py", line 689, in do_handshake
    self._sslobj.do_handshake()
ssl.SSLError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:852)

----------------------------------------------------------------------

Ran 103 tests in 0.534s

FAILED (errors=1)

@bedevere-bot
Copy link

⚠️⚠️⚠️ Buildbot failure ⚠️⚠️⚠️

Hi! The buildbot AMD64 Ubuntu Shared 3.6 has failed when building commit c50d437.

What do you need to do:

  1. Don't panic.
  2. Check the buildbot page in the devguide if you don't know what the buildbots are or how they work.
  3. Go to the page of the buildbot that failed (https://buildbot.python.org/all/#builders/144/builds/423) and take a look at the build logs.
  4. Check if the failure is related to this commit (c50d437) or if it is a false positive.
  5. If the failure is related to this commit, please, reflect that on the issue and make a new Pull Request with a fix.

You can take a look at the buildbot page here:

https://buildbot.python.org/all/#builders/144/builds/423

Click to see traceback logs
Traceback (most recent call last):
  File "/srv/buildbot/buildarea/3.6.bolen-ubuntu/build/Lib/test/test_httplib.py", line 1605, in test_networked_good_cert
    h.request('GET', '/')
  File "/srv/buildbot/buildarea/3.6.bolen-ubuntu/build/Lib/http/client.py", line 1254, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/srv/buildbot/buildarea/3.6.bolen-ubuntu/build/Lib/http/client.py", line 1300, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/srv/buildbot/buildarea/3.6.bolen-ubuntu/build/Lib/http/client.py", line 1249, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/srv/buildbot/buildarea/3.6.bolen-ubuntu/build/Lib/http/client.py", line 1036, in _send_output
    self.send(msg)
  File "/srv/buildbot/buildarea/3.6.bolen-ubuntu/build/Lib/http/client.py", line 974, in send
    self.connect()
  File "/srv/buildbot/buildarea/3.6.bolen-ubuntu/build/Lib/http/client.py", line 1415, in connect
    server_hostname=server_hostname)
  File "/srv/buildbot/buildarea/3.6.bolen-ubuntu/build/Lib/ssl.py", line 407, in wrap_socket
    _context=self, _session=session)
  File "/srv/buildbot/buildarea/3.6.bolen-ubuntu/build/Lib/ssl.py", line 817, in __init__
    self.do_handshake()
  File "/srv/buildbot/buildarea/3.6.bolen-ubuntu/build/Lib/ssl.py", line 1077, in do_handshake
    self._sslobj.do_handshake()
  File "/srv/buildbot/buildarea/3.6.bolen-ubuntu/build/Lib/ssl.py", line 689, in do_handshake
    self._sslobj.do_handshake()
ssl.SSLError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:852)

----------------------------------------------------------------------

Ran 103 tests in 0.481s

FAILED (errors=1)


Traceback (most recent call last):
  File "/srv/buildbot/buildarea/3.6.bolen-ubuntu/build/Lib/test/test_httplib.py", line 1605, in test_networked_good_cert
    h.request('GET', '/')
  File "/srv/buildbot/buildarea/3.6.bolen-ubuntu/build/Lib/http/client.py", line 1254, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/srv/buildbot/buildarea/3.6.bolen-ubuntu/build/Lib/http/client.py", line 1300, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/srv/buildbot/buildarea/3.6.bolen-ubuntu/build/Lib/http/client.py", line 1249, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/srv/buildbot/buildarea/3.6.bolen-ubuntu/build/Lib/http/client.py", line 1036, in _send_output
    self.send(msg)
  File "/srv/buildbot/buildarea/3.6.bolen-ubuntu/build/Lib/http/client.py", line 974, in send
    self.connect()
  File "/srv/buildbot/buildarea/3.6.bolen-ubuntu/build/Lib/http/client.py", line 1415, in connect
    server_hostname=server_hostname)
  File "/srv/buildbot/buildarea/3.6.bolen-ubuntu/build/Lib/ssl.py", line 407, in wrap_socket
    _context=self, _session=session)
  File "/srv/buildbot/buildarea/3.6.bolen-ubuntu/build/Lib/ssl.py", line 817, in __init__
    self.do_handshake()
  File "/srv/buildbot/buildarea/3.6.bolen-ubuntu/build/Lib/ssl.py", line 1077, in do_handshake
    self._sslobj.do_handshake()
  File "/srv/buildbot/buildarea/3.6.bolen-ubuntu/build/Lib/ssl.py", line 689, in do_handshake
    self._sslobj.do_handshake()
ssl.SSLError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:852)

----------------------------------------------------------------------

Ran 103 tests in 0.588s

FAILED (errors=1)

@bedevere-bot
Copy link

⚠️⚠️⚠️ Buildbot failure ⚠️⚠️⚠️

Hi! The buildbot AMD64 Debian PGO 3.6 has failed when building commit c50d437.

What do you need to do:

  1. Don't panic.
  2. Check the buildbot page in the devguide if you don't know what the buildbots are or how they work.
  3. Go to the page of the buildbot that failed (https://buildbot.python.org/all/#builders/77/builds/784) and take a look at the build logs.
  4. Check if the failure is related to this commit (c50d437) or if it is a false positive.
  5. If the failure is related to this commit, please, reflect that on the issue and make a new Pull Request with a fix.

You can take a look at the buildbot page here:

https://buildbot.python.org/all/#builders/77/builds/784

Click to see traceback logs
Traceback (most recent call last):
  File "/var/lib/buildbot/slaves/enable-optimizations-bot/3.6.gps-debian-profile-opt.nondebug/build/Lib/test/test_httplib.py", line 1605, in test_networked_good_cert
    h.request('GET', '/')
  File "/var/lib/buildbot/slaves/enable-optimizations-bot/3.6.gps-debian-profile-opt.nondebug/build/Lib/http/client.py", line 1254, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/var/lib/buildbot/slaves/enable-optimizations-bot/3.6.gps-debian-profile-opt.nondebug/build/Lib/http/client.py", line 1300, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/var/lib/buildbot/slaves/enable-optimizations-bot/3.6.gps-debian-profile-opt.nondebug/build/Lib/http/client.py", line 1249, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/var/lib/buildbot/slaves/enable-optimizations-bot/3.6.gps-debian-profile-opt.nondebug/build/Lib/http/client.py", line 1036, in _send_output
    self.send(msg)
  File "/var/lib/buildbot/slaves/enable-optimizations-bot/3.6.gps-debian-profile-opt.nondebug/build/Lib/http/client.py", line 974, in send
    self.connect()
  File "/var/lib/buildbot/slaves/enable-optimizations-bot/3.6.gps-debian-profile-opt.nondebug/build/Lib/http/client.py", line 1415, in connect
    server_hostname=server_hostname)
  File "/var/lib/buildbot/slaves/enable-optimizations-bot/3.6.gps-debian-profile-opt.nondebug/build/Lib/ssl.py", line 407, in wrap_socket
    _context=self, _session=session)
  File "/var/lib/buildbot/slaves/enable-optimizations-bot/3.6.gps-debian-profile-opt.nondebug/build/Lib/ssl.py", line 817, in __init__
    self.do_handshake()
  File "/var/lib/buildbot/slaves/enable-optimizations-bot/3.6.gps-debian-profile-opt.nondebug/build/Lib/ssl.py", line 1077, in do_handshake
    self._sslobj.do_handshake()
  File "/var/lib/buildbot/slaves/enable-optimizations-bot/3.6.gps-debian-profile-opt.nondebug/build/Lib/ssl.py", line 689, in do_handshake
    self._sslobj.do_handshake()
ssl.SSLError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:852)

----------------------------------------------------------------------

Ran 103 tests in 0.569s

FAILED (errors=1)


Traceback (most recent call last):
  File "/var/lib/buildbot/slaves/enable-optimizations-bot/3.6.gps-debian-profile-opt.nondebug/build/Lib/test/test_httplib.py", line 1605, in test_networked_good_cert
    h.request('GET', '/')
  File "/var/lib/buildbot/slaves/enable-optimizations-bot/3.6.gps-debian-profile-opt.nondebug/build/Lib/http/client.py", line 1254, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/var/lib/buildbot/slaves/enable-optimizations-bot/3.6.gps-debian-profile-opt.nondebug/build/Lib/http/client.py", line 1300, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/var/lib/buildbot/slaves/enable-optimizations-bot/3.6.gps-debian-profile-opt.nondebug/build/Lib/http/client.py", line 1249, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/var/lib/buildbot/slaves/enable-optimizations-bot/3.6.gps-debian-profile-opt.nondebug/build/Lib/http/client.py", line 1036, in _send_output
    self.send(msg)
  File "/var/lib/buildbot/slaves/enable-optimizations-bot/3.6.gps-debian-profile-opt.nondebug/build/Lib/http/client.py", line 974, in send
    self.connect()
  File "/var/lib/buildbot/slaves/enable-optimizations-bot/3.6.gps-debian-profile-opt.nondebug/build/Lib/http/client.py", line 1415, in connect
    server_hostname=server_hostname)
  File "/var/lib/buildbot/slaves/enable-optimizations-bot/3.6.gps-debian-profile-opt.nondebug/build/Lib/ssl.py", line 407, in wrap_socket
    _context=self, _session=session)
  File "/var/lib/buildbot/slaves/enable-optimizations-bot/3.6.gps-debian-profile-opt.nondebug/build/Lib/ssl.py", line 817, in __init__
    self.do_handshake()
  File "/var/lib/buildbot/slaves/enable-optimizations-bot/3.6.gps-debian-profile-opt.nondebug/build/Lib/ssl.py", line 1077, in do_handshake
    self._sslobj.do_handshake()
  File "/var/lib/buildbot/slaves/enable-optimizations-bot/3.6.gps-debian-profile-opt.nondebug/build/Lib/ssl.py", line 689, in do_handshake
    self._sslobj.do_handshake()
ssl.SSLError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:852)

----------------------------------------------------------------------

Ran 103 tests in 0.493s

FAILED (errors=1)

@bedevere-bot
Copy link

⚠️⚠️⚠️ Buildbot failure ⚠️⚠️⚠️

Hi! The buildbot x86 Windows7 3.6 has failed when building commit c50d437.

What do you need to do:

  1. Don't panic.
  2. Check the buildbot page in the devguide if you don't know what the buildbots are or how they work.
  3. Go to the page of the buildbot that failed (https://buildbot.python.org/all/#builders/90/builds/747) and take a look at the build logs.
  4. Check if the failure is related to this commit (c50d437) or if it is a false positive.
  5. If the failure is related to this commit, please, reflect that on the issue and make a new Pull Request with a fix.

You can take a look at the buildbot page here:

https://buildbot.python.org/all/#builders/90/builds/747

Click to see traceback logs
From https://github.com/python/cpython
 * branch            3.6        -> FETCH_HEAD
 * [new tag]         3.4        -> 3.4
 * [new tag]         v3.8.0a4   -> v3.8.0a4
Reset branch '3.6'

The term 'Invoke-WebRequest' is not recognized as the name of a cmdlet, functio
n, script file, or operable program. Check the spelling of the name, or if a pa
th was included, verify that the path is correct and try again.
At line:1 char:18
+ Invoke-WebRequest <<<<  https://aka.ms/nugetclidl -OutFile 'D:\cygwin\home\db
3l\buildarea\3.6.bolen-windows7\build\PCbuild\\..\externals\nuget.exe'
    + CategoryInfo          : ObjectNotFound: (Invoke-WebRequest:String) [], C 
   ommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException
 
'py' is not recognized as an internal or external command,
operable program or batch file.
'"D:\cygwin\home\db3l\buildarea\3.6.bolen-windows7\build\PCbuild\\..\externals\nuget.exe"' is not recognized as an internal or external command,
operable program or batch file.
The term 'Invoke-WebRequest' is not recognized as the name of a cmdlet, functio
n, script file, or operable program. Check the spelling of the name, or if a pa
th was included, verify that the path is correct and try again.
At line:1 char:18
+ Invoke-WebRequest <<<<  https://aka.ms/nugetclidl -OutFile 'D:\cygwin\home\db
3l\buildarea\3.6.bolen-windows7\build\PCbuild\\..\externals\nuget.exe'
    + CategoryInfo          : ObjectNotFound: (Invoke-WebRequest:String) [], C 
   ommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException
 
'py' is not recognized as an internal or external command,
operable program or batch file.
'"D:\cygwin\home\db3l\buildarea\3.6.bolen-windows7\build\PCbuild\\..\externals\nuget.exe"' is not recognized as an internal or external command,
operable program or batch file.
Could Not Find D:\cygwin\home\db3l\buildarea\3.6.bolen-windows7\build\Lib\*.pyc
The system cannot find the file specified.
Could Not Find D:\cygwin\home\db3l\buildarea\3.6.bolen-windows7\build\PCbuild\python*.zip
The term 'Invoke-WebRequest' is not recognized as the name of a cmdlet, functio
n, script file, or operable program. Check the spelling of the name, or if a pa
th was included, verify that the path is correct and try again.
At line:1 char:18
+ Invoke-WebRequest <<<<  https://aka.ms/nugetclidl -OutFile 'D:\cygwin\home\db
3l\buildarea\3.6.bolen-windows7\build\PCbuild\\..\externals\nuget.exe'
    + CategoryInfo          : ObjectNotFound: (Invoke-WebRequest:String) [], C 
   ommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException
 
'py' is not recognized as an internal or external command,
operable program or batch file.
'"D:\cygwin\home\db3l\buildarea\3.6.bolen-windows7\build\PCbuild\\..\externals\nuget.exe"' is not recognized as an internal or external command,
operable program or batch file.

test_dbm_gnu skipped -- No module named '_gdbm'
test_grp skipped -- No module named 'grp'
skipped 'test requires 2500000000 bytes and a long time to run'

----------------------------------------------------------------------

Ran 0 tests in 0.000s

OK (skipped=1)
test_bad_status_repr (test.test_httplib.BasicTest) ... ok
test_chunked (test.test_httplib.BasicTest) ... ok
test_chunked_extension (test.test_httplib.BasicTest) ... ok
test_chunked_head (test.test_httplib.BasicTest) ... ok
test_chunked_missing_end (test.test_httplib.BasicTest)
some servers may serve up a short chunked encoding stream ... ok
test_chunked_sync (test.test_httplib.BasicTest)
Check that we don't read past the end of the chunked-encoding stream ... ok
test_chunked_trailers (test.test_httplib.BasicTest)
See that trailers are read and ignored ... ok
test_content_length_sync (test.test_httplib.BasicTest)
Check that we don't read past the end of the Content-Length stream ... ok
test_early_eof (test.test_httplib.BasicTest) ... ok
test_epipe (test.test_httplib.BasicTest) ... ok
test_error_leak (test.test_httplib.BasicTest) ... ok
test_host_port (test.test_httplib.BasicTest) ... ok
test_incomplete_read (test.test_httplib.BasicTest) ... ok
test_mixed_reads (test.test_httplib.BasicTest) ... ok
test_negative_content_length (test.test_httplib.BasicTest) ... ok
test_overflowing_chunked_line (test.test_httplib.BasicTest) ... ok
test_overflowing_header_line (test.test_httplib.BasicTest) ... ok
test_overflowing_status_line (test.test_httplib.BasicTest) ... ok
test_partial_readintos (test.test_httplib.BasicTest) ... ok
test_partial_readintos_incomplete_body (test.test_httplib.BasicTest) ... ok
test_partial_readintos_no_content_length (test.test_httplib.BasicTest) ... ok
test_partial_reads (test.test_httplib.BasicTest) ... ok
test_partial_reads_incomplete_body (test.test_httplib.BasicTest) ... ok
test_partial_reads_no_content_length (test.test_httplib.BasicTest) ... ok
test_read1_bound_content_length (test.test_httplib.BasicTest) ... ok
test_read1_content_length (test.test_httplib.BasicTest) ... ok
test_read_head (test.test_httplib.BasicTest) ... ok
test_readinto_chunked (test.test_httplib.BasicTest) ... ok
test_readinto_chunked_head (test.test_httplib.BasicTest) ... ok
test_readinto_head (test.test_httplib.BasicTest) ... ok
test_readline_bound_content_length (test.test_httplib.BasicTest) ... ok
test_readlines_content_length (test.test_httplib.BasicTest) ... ok
test_response_fileno (test.test_httplib.BasicTest) ... ok
test_response_headers (test.test_httplib.BasicTest) ... ok
test_send (test.test_httplib.BasicTest) ... ok
test_send_file (test.test_httplib.BasicTest) ... ok
test_send_iter (test.test_httplib.BasicTest) ... ok
test_send_type_error (test.test_httplib.BasicTest) ... ok
test_send_updating_file (test.test_httplib.BasicTest) ... ok
test_status_lines (test.test_httplib.BasicTest) ... ok
test_too_many_headers (test.test_httplib.BasicTest) ... ok
test_peek (test.test_httplib.ExtendedReadTest) ... ok
test_peek_0 (test.test_httplib.ExtendedReadTest) ... ok
test_read1 (test.test_httplib.ExtendedReadTest) ... ok
test_read1_0 (test.test_httplib.ExtendedReadTest) ... ok
test_read1_bounded (test.test_httplib.ExtendedReadTest) ... ok
test_read1_unbounded (test.test_httplib.ExtendedReadTest) ... ok
test_readline (test.test_httplib.ExtendedReadTest) ... ok
test_peek (test.test_httplib.ExtendedReadTestChunked) ... ok
test_peek_0 (test.test_httplib.ExtendedReadTestChunked) ... ok
test_read1 (test.test_httplib.ExtendedReadTestChunked) ... ok
test_read1_0 (test.test_httplib.ExtendedReadTestChunked) ... ok
test_read1_bounded (test.test_httplib.ExtendedReadTestChunked) ... ok
test_read1_unbounded (test.test_httplib.ExtendedReadTestChunked) ... ok
test_readline (test.test_httplib.ExtendedReadTestChunked) ... ok
test_getting_header (test.test_httplib.HTTPResponseTest) ... ok
test_getting_header_defaultint (test.test_httplib.HTTPResponseTest) ... ok
test_getting_nonexistent_header_with_iterable_default (test.test_httplib.HTTPResponseTest) ... ok
test_getting_nonexistent_header_with_string_default (test.test_httplib.HTTPResponseTest) ... ok
test_getting_nonexistent_header_without_default (test.test_httplib.HTTPResponseTest) ... ok
test_attributes (test.test_httplib.HTTPSTest) ... ok
test_host_port (test.test_httplib.HTTPSTest) ... ok
test_local_bad_hostname (test.test_httplib.HTTPSTest) ...  server (('127.0.0.1', 56004):56004 ('ECDHE-RSA-AES256-GCM-SHA384', 'TLSv1/SSLv3', 256)):
   [08/May/2019 13:43:41] code 404, message File not found
 server (('127.0.0.1', 56004):56004 ('ECDHE-RSA-AES256-GCM-SHA384', 'TLSv1/SSLv3', 256)):
   [08/May/2019 13:43:41] "GET /nonexistent HTTP/1.1" 404 -
 server (('127.0.0.1', 56004):56004 ('ECDHE-RSA-AES256-GCM-SHA384', 'TLSv1/SSLv3', 256)):
   [08/May/2019 13:43:43] code 404, message File not found
 server (('127.0.0.1', 56004):56004 ('ECDHE-RSA-AES256-GCM-SHA384', 'TLSv1/SSLv3', 256)):
   [08/May/2019 13:43:43] "GET /nonexistent HTTP/1.1" 404 -
stopping HTTPS server
joining HTTPS thread
ok
test_local_good_hostname (test.test_httplib.HTTPSTest) ...  server (('127.0.0.1', 56019):56019 ('ECDHE-RSA-AES256-GCM-SHA384', 'TLSv1/SSLv3', 256)):
   [08/May/2019 13:43:45] code 404, message File not found
 server (('127.0.0.1', 56019):56019 ('ECDHE-RSA-AES256-GCM-SHA384', 'TLSv1/SSLv3', 256)):
   [08/May/2019 13:43:45] "GET /nonexistent HTTP/1.1" 404 -
stopping HTTPS server
joining HTTPS thread
ok
test_local_unknown_cert (test.test_httplib.HTTPSTest) ... stopping HTTPS server
Got an error:
[WinError 10054] An existing connection was forcibly closed by the remote host
joining HTTPS thread
ok
test_networked (test.test_httplib.HTTPSTest) ... ok
test_networked_bad_cert (test.test_httplib.HTTPSTest) ... ok
test_networked_good_cert (test.test_httplib.HTTPSTest) ... ERROR
test_networked_noverification (test.test_httplib.HTTPSTest) ... ok
test_networked_trusted_by_default_cert (test.test_httplib.HTTPSTest) ... skipped 'system does not contain necessary certificates'
test_auto_headers (test.test_httplib.HeaderTests) ... ok
test_content_length_0 (test.test_httplib.HeaderTests) ... ok
test_headers_debuglevel (test.test_httplib.HeaderTests) ... ok
test_invalid_headers (test.test_httplib.HeaderTests) ... ok
test_ipv6host_header (test.test_httplib.HeaderTests) ... ok
test_malformed_headers_coped_with (test.test_httplib.HeaderTests) ... ok
test_parse_all_octets (test.test_httplib.HeaderTests) ... ok
test_putheader (test.test_httplib.HeaderTests) ... ok
test_all (test.test_httplib.OfflineTest) ... ok
test_client_constants (test.test_httplib.OfflineTest) ... ok
test_responses (test.test_httplib.OfflineTest) ... ok
test_100_close (test.test_httplib.PersistenceTest) ... ok
test_disconnected (test.test_httplib.PersistenceTest) ... ok
test_reuse_reconnect (test.test_httplib.PersistenceTest) ... ok
test_ascii_body (test.test_httplib.RequestBodyTest) ... ok
test_binary_file_body (test.test_httplib.RequestBodyTest) ... ok
test_bytes_body (test.test_httplib.RequestBodyTest) ... ok
test_latin1_body (test.test_httplib.RequestBodyTest) ... ok
test_list_body (test.test_httplib.RequestBodyTest) ... ok
test_manual_content_length (test.test_httplib.RequestBodyTest) ... ok
test_text_file_body (test.test_httplib.RequestBodyTest) ... ok
testHTTPConnectionSourceAddress (test.test_httplib.SourceAddressTest) ... ok
testHTTPSConnectionSourceAddress (test.test_httplib.SourceAddressTest) ... ok
testTimeoutAttribute (test.test_httplib.TimeoutTest) ... ok
test_empty_body (test.test_httplib.TransferEncodingTest) ... ok
test_endheaders_chunked (test.test_httplib.TransferEncodingTest) ... ok
test_explicit_headers (test.test_httplib.TransferEncodingTest) ... ok
test_request (test.test_httplib.TransferEncodingTest) ... ok
test_connect_put_request (test.test_httplib.TunnelTests) ... ok
test_connect_with_tunnel (test.test_httplib.TunnelTests) ... ok
test_disallow_set_tunnel_after_connect (test.test_httplib.TunnelTests) ... ok
test_set_tunnel_host_port_headers (test.test_httplib.TunnelTests) ... ok
test_tunnel_debuglog (test.test_httplib.TunnelTests) ... ok

======================================================================
ERROR: test_networked_good_cert (test.test_httplib.HTTPSTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "D:\cygwin\home\db3l\buildarea\3.6.bolen-windows7\build\lib\test\test_httplib.py", line 1605, in test_networked_good_cert
    h.request('GET', '/')
  File "D:\cygwin\home\db3l\buildarea\3.6.bolen-windows7\build\lib\http\client.py", line 1254, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "D:\cygwin\home\db3l\buildarea\3.6.bolen-windows7\build\lib\http\client.py", line 1300, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "D:\cygwin\home\db3l\buildarea\3.6.bolen-windows7\build\lib\http\client.py", line 1249, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "D:\cygwin\home\db3l\buildarea\3.6.bolen-windows7\build\lib\http\client.py", line 1036, in _send_output
    self.send(msg)
  File "D:\cygwin\home\db3l\buildarea\3.6.bolen-windows7\build\lib\http\client.py", line 974, in send
    self.connect()
  File "D:\cygwin\home\db3l\buildarea\3.6.bolen-windows7\build\lib\http\client.py", line 1415, in connect
    server_hostname=server_hostname)
  File "D:\cygwin\home\db3l\buildarea\3.6.bolen-windows7\build\lib\ssl.py", line 407, in wrap_socket
    _context=self, _session=session)
  File "D:\cygwin\home\db3l\buildarea\3.6.bolen-windows7\build\lib\ssl.py", line 817, in __init__
    self.do_handshake()
  File "D:\cygwin\home\db3l\buildarea\3.6.bolen-windows7\build\lib\ssl.py", line 1077, in do_handshake
    self._sslobj.do_handshake()
  File "D:\cygwin\home\db3l\buildarea\3.6.bolen-windows7\build\lib\ssl.py", line 689, in do_handshake
    self._sslobj.do_handshake()
ssl.SSLError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:852)

----------------------------------------------------------------------

Ran 103 tests in 12.057s

FAILED (errors=1, skipped=1)
test test_httplib failed
test_zipfile64 skipped -- test requires loads of disk-space bytes and a long time to run
test_curses skipped -- No module named '_curses'
test_devpoll skipped -- test works only on Solaris OS family
test_multiprocessing_fork skipped -- fork is not available on Windows
test_fcntl skipped -- No module named 'fcntl'
test_threadsignals skipped -- Can't test signal on win32
test_pipes skipped -- pipes module only works on posix
minkernel\crts\ucrt\src\appcrt\lowio\write.cpp(49) : Assertion failed: (_osfile(fh) & FOPEN)
minkernel\crts\ucrt\src\appcrt\lowio\close.cpp(49) : Assertion failed: (_osfile(fh) & FOPEN)
minkernel\crts\ucrt\src\appcrt\lowio\close.cpp(49) : Assertion failed: (_osfile(fh) & FOPEN)
test_fork1 skipped -- object <module 'os' from 'D:\\cygwin\\home\\db3l\\buildarea\\3.6.bolen-windows7\\build\\lib\\os.py'> has no attribute 'fork'
test_readline skipped -- No module named 'readline'
test_syslog skipped -- No module named 'syslog'
test_dbm_ndbm skipped -- No module named '_dbm'
skipped 'dtrace(1) failed: [WinError 2] The system cannot find the file specified'
skipped 'dtrace(1) failed: [WinError 2] The system cannot find the file specified'
skipped 'stap(1) failed: [WinError 2] The system cannot find the file specified'
skipped 'stap(1) failed: [WinError 2] The system cannot find the file specified'

----------------------------------------------------------------------

Ran 0 tests in 0.070s

OK (skipped=4)
test_ioctl skipped -- No module named 'fcntl'
test_crypt skipped -- No module named '_crypt'
test_wait4 skipped -- object <module 'os' from 'D:\\cygwin\\home\\db3l\\buildarea\\3.6.bolen-windows7\\build\\lib\\os.py'> has no attribute 'fork'
test_ossaudiodev skipped -- No module named 'ossaudiodev'
test_openpty skipped -- os.openpty() not available.
test_kqueue skipped -- test works only on BSD
test_resource skipped -- No module named 'resource'
test_nis skipped -- No module named 'nis'
test_pty skipped -- No module named 'termios'
test_pwd skipped -- No module named 'pwd'
minkernel\crts\ucrt\src\appcrt\lowio\write.cpp(49) : Assertion failed: (_osfile(fh) & FOPEN)
test_gdb skipped -- Couldn't find gdb on the path

----------------------------------------------------------------------

Ran 0 tests in 0.000s

OK
test_multiprocessing_forkserver skipped -- forkserver is not available on Windows
test_posix skipped -- No module named 'posix'
test_wait3 skipped -- os.fork not defined
stty: standard input: Inappropriate ioctl for device
D:\cygwin\home\db3l\buildarea\3.6.bolen-windows7\build\lib\test\support\__init__.py:1036: RuntimeWarning: tests may fail, unable to create temp dir: D:\cygwin\home\db3l\buildarea\3.6.bolen-windows7\build\build\test_python_1096
  with temp_dir(path=name, quiet=quiet) as temp_path:
test_poll skipped -- select.poll not defined
test_spwd skipped -- No module named 'spwd'
test_epoll skipped -- test works only on Linux 2.6
Got an error:
[WinError 10054] An existing connection was forcibly closed by the remote host
test test_httplib failed

The term 'Invoke-WebRequest' is not recognized as the name of a cmdlet, functio
n, script file, or operable program. Check the spelling of the name, or if a pa
th was included, verify that the path is correct and try again.
At line:1 char:18
+ Invoke-WebRequest <<<<  https://aka.ms/nugetclidl -OutFile 'D:\cygwin\home\db
3l\buildarea\3.6.bolen-windows7\build\PCbuild\\..\externals\nuget.exe'
    + CategoryInfo          : ObjectNotFound: (Invoke-WebRequest:String) [], C 
   ommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException
 
'py' is not recognized as an internal or external command,
operable program or batch file.
'"D:\cygwin\home\db3l\buildarea\3.6.bolen-windows7\build\PCbuild\\..\externals\nuget.exe"' is not recognized as an internal or external command,
operable program or batch file.
The term 'Invoke-WebRequest' is not recognized as the name of a cmdlet, functio
n, script file, or operable program. Check the spelling of the name, or if a pa
th was included, verify that the path is correct and try again.
At line:1 char:18
+ Invoke-WebRequest <<<<  https://aka.ms/nugetclidl -OutFile 'D:\cygwin\home\db
3l\buildarea\3.6.bolen-windows7\build\PCbuild\\..\externals\nuget.exe'
    + CategoryInfo          : ObjectNotFound: (Invoke-WebRequest:String) [], C 
   ommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException
 
'py' is not recognized as an internal or external command,
operable program or batch file.
'"D:\cygwin\home\db3l\buildarea\3.6.bolen-windows7\build\PCbuild\\..\externals\nuget.exe"' is not recognized as an internal or external command,
operable program or batch file.
Could Not Find D:\cygwin\home\db3l\buildarea\3.6.bolen-windows7\build\PCbuild\python*.zip

hroncok added a commit to hroncok/cpython that referenced this pull request May 8, 2019
Disallow control chars in http URLs in urllib.urlopen.  This addresses a potential security problem for applications that do not sanity check their URLs where http request headers could be injected.

Disable https related urllib tests on a build without ssl (pythonGH-13032)
These tests require an SSL enabled build. Skip these tests when python is built without SSL to fix test failures.

Use http.client.InvalidURL instead of ValueError as the new error case's exception. (pythonGH-13044)

Co-Authored-By: Miro Hrončok <miro@hroncok.cz>
vstinner added a commit that referenced this pull request May 21, 2019
…H-13315)

Disallow control chars in http URLs in urllib2.urlopen.  This
addresses a potential security problem for applications that do not
sanity check their URLs where http request headers could be injected.

Disable https related urllib tests on a build without ssl (GH-13032)
These tests require an SSL enabled build. Skip these tests when
python is built without SSL to fix test failures.

Use httplib.InvalidURL instead of ValueError as the new error case's
exception. (GH-13044)

Backport Co-Authored-By: Miro Hrončok <miro@hroncok.cz>

(cherry picked from commit 7e200e0)

Notes on backport to Python 2.7:

* test_urllib tests urllib.urlopen() which quotes the URL and so is
  not vulerable to HTTP Header Injection.
* Add tests to test_urllib2 on urllib2.urlopen().
* Reject non-ASCII characters: range 0x80-0xff.
larryhastings pushed a commit that referenced this pull request Jul 14, 2019
Disallow control chars in http URLs in urllib.urlopen.  This addresses a potential security problem for applications that do not sanity check their URLs where http request headers could be injected.

Disable https related urllib tests on a build without ssl (GH-13032)
These tests require an SSL enabled build. Skip these tests when python is built without SSL to fix test failures.

Use http.client.InvalidURL instead of ValueError as the new error case's exception. (GH-13044)

Co-Authored-By: Miro Hrončok <miro@hroncok.cz>
mingwandroid pushed a commit to mingwandroid/cpython that referenced this pull request Aug 9, 2019
…honGH-13154)

Disallow control chars in http URLs in urllib.urlopen.  This addresses a potential security problem for applications that do not sanity check their URLs where http request headers could be injected.

Disable https related urllib tests on a build without ssl (pythonGH-13032)
These tests require an SSL enabled build. Skip these tests when python is built without SSL to fix test failures.

Use http.client.InvalidURL instead of ValueError as the new error case's exception. (pythonGH-13044)

Backport Co-Authored-By: Miro Hrončok <miro@hroncok.cz>
skazi0 added a commit to skazi0/urllib3 that referenced this pull request Oct 13, 2020
They triggered CVE-2019-9740 checks added in python here [0].
The problematic test should fail because of invalid source address but it
failed earlier because of invalid request URL. Request URLs contained string
representation of the tested source address which can contain whitespaces.
E.g. "/source_address?(\'192.0.2.255\', 0)"
The source addresses seem to be there only for information and were added as
part of [1]. Removing them from the request URL makes the tests pass again.

[0] python/cpython#12755
[1] urllib3#703
@wichert wichert mannequin mentioned this pull request Oct 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type-bug An unexpected behavior, bug, or error type-security A security issue
Projects
None yet
Development

Successfully merging this pull request may close these issues.

9 participants