cpython: 7ff3ce0dfd45 (original) (raw)

Mercurial > cpython

changeset 102617:7ff3ce0dfd45

Issue #26741: Merge ResourceWarning fixes from 3.5 [#26741]

Martin Panter vadmium+py@gmail.com
date Fri, 12 Aug 2016 12:04:27 +0000
parents 05120447f2c6(current diff)f78a682a3515(diff)
children 8c33152fd75c
files
diffstat 2 files changed, 13 insertions(+), 2 deletions(-)[+] [-] Lib/test/test_httplib.py 12 Lib/test/test_poll.py 3

line wrap: on

line diff

--- a/Lib/test/test_httplib.py +++ b/Lib/test/test_httplib.py @@ -1402,6 +1402,7 @@ class HTTPSTest(TestCase): resp = h.getresponse() h.close() self.assertIn('nginx', resp.getheader('server'))

@support.system_must_validate_cert def test_networked_trusted_by_default_cert(self): @@ -1412,6 +1413,7 @@ class HTTPSTest(TestCase): h.request('GET', '/') resp = h.getresponse() content_type = resp.getheader('content-type')

@@ -1427,6 +1429,7 @@ class HTTPSTest(TestCase): h.request('GET', '/') resp = h.getresponse() server_string = resp.getheader('server')

@@ -1460,8 +1463,10 @@ class HTTPSTest(TestCase): context.verify_mode = ssl.CERT_REQUIRED context.load_verify_locations(CERT_localhost) h = client.HTTPSConnection('localhost', server.port, context=context)

def test_local_bad_hostname(self): @@ -1486,13 +1491,18 @@ class HTTPSTest(TestCase): check_hostname=False) h.request('GET', '/nonexistent') resp = h.getresponse()

--- a/Lib/test/test_poll.py +++ b/Lib/test/test_poll.py @@ -125,6 +125,8 @@ class PollTests(unittest.TestCase): cmd = 'for i in 0 1 2 3 4 5 6 7 8 9; do echo testing...; sleep 1; done' proc = subprocess.Popen(cmd, shell=True, stdout=subprocess.PIPE, bufsize=0)

@@ -147,7 +149,6 @@ class PollTests(unittest.TestCase): continue else: self.fail('Unexpected return value from select.poll: %s' % fdlist)

def test_poll3(self): # test int overflow