summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_httplib.py
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2015-02-27 16:47:40 (GMT)
committerVictor Stinner <victor.stinner@gmail.com>2015-02-27 16:47:40 (GMT)
commit69899e6f3f92cf10de2164b1d46c0f4355f9d26d (patch)
tree05b61eb1492c9d225466772d6d8779927ab895e2 /Lib/test/test_httplib.py
parentad9296e4037c4ff94c6bba83637759f8f40ee31b (diff)
parentb389b482659a0633d84f15307c9605cc0bf28633 (diff)
downloadcpython-69899e6f3f92cf10de2164b1d46c0f4355f9d26d.zip
cpython-69899e6f3f92cf10de2164b1d46c0f4355f9d26d.tar.gz
cpython-69899e6f3f92cf10de2164b1d46c0f4355f9d26d.tar.bz2
Merge 3.4 (httplib)
Diffstat (limited to 'Lib/test/test_httplib.py')
-rw-r--r--Lib/test/test_httplib.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/Lib/test/test_httplib.py b/Lib/test/test_httplib.py
index 50ddf18..9c1550e 100644
--- a/Lib/test/test_httplib.py
+++ b/Lib/test/test_httplib.py
@@ -1113,6 +1113,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
@@ -1124,6 +1125,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):
@@ -1138,6 +1140,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):