Commit a1051639 authored by Senthil Kumaran's avatar Senthil Kumaran

branch merge 3.2

parents 875abc06 11af4755
......@@ -176,8 +176,11 @@ class urlopen_HttpTests(unittest.TestCase):
def test_willclose(self):
self.fakehttp(b"HTTP/1.1 200 OK\r\n\r\nHello!")
resp = urlopen("http://www.python.org")
self.assertTrue(resp.fp.will_close)
try:
resp = urlopen("http://www.python.org")
self.assertTrue(resp.fp.will_close)
finally:
self.unfakehttp()
def test_read_0_9(self):
# "0.9" response accepted (but not "simple responses" without
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment