Commit 833d9120 authored by Senthil Kumaran's avatar Senthil Kumaran

closes issue11609. buildbot related failures in the test_urllibnet.

parents 89ba56d5 a7f43cc0
......@@ -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