changeset: 94764:f51fe54e6646 branch: 3.4 tag: tip user: Victor Stinner date: Thu Feb 26 17:07:43 2015 +0100 files: Lib/test/test_httplib.py Misc/ACKS description: Issue #23526: Fix ResourceWarning in test_httplib. Patch written by Alex Shkop. diff -r 4ce53fdb6438 -r f51fe54e6646 Lib/test/test_httplib.py --- a/Lib/test/test_httplib.py Thu Feb 26 05:58:48 2015 -0800 +++ b/Lib/test/test_httplib.py Thu Feb 26 17:07:43 2015 +0100 @@ -840,6 +840,7 @@ class HTTPSTest(TestCase): context=context) h.request('GET', '/') resp = h.getresponse() + h.close() self.assertIn('nginx', resp.getheader('server')) @support.system_must_validate_cert @@ -851,6 +852,7 @@ class HTTPSTest(TestCase): h.request('GET', '/') resp = h.getresponse() content_type = resp.getheader('content-type') + h.close() self.assertIn('text/html', content_type) def test_networked_good_cert(self): @@ -865,6 +867,7 @@ class HTTPSTest(TestCase): h.request('GET', '/') resp = h.getresponse() server_string = resp.getheader('server') + h.close() self.assertIn('nginx', server_string) def test_networked_bad_cert(self): diff -r 4ce53fdb6438 -r f51fe54e6646 Misc/ACKS --- a/Misc/ACKS Thu Feb 26 05:58:48 2015 -0800 +++ b/Misc/ACKS Thu Feb 26 17:07:43 2015 +0100 @@ -1247,6 +1247,7 @@ Alexander Shigin Pete Shinners Michael Shiplett John W. Shipman +Alex Shkop Joel Shprentz Yue Shuaijie Terrel Shumway