mirror of
https://github.com/python/cpython.git
synced 2025-11-27 05:44:16 +00:00
closes issue11609. buildbot related failures in the test_urllibnet.
This commit is contained in:
commit
833d91204f
1 changed files with 5 additions and 2 deletions
|
|
@ -176,8 +176,11 @@ class urlopen_HttpTests(unittest.TestCase):
|
||||||
|
|
||||||
def test_willclose(self):
|
def test_willclose(self):
|
||||||
self.fakehttp(b"HTTP/1.1 200 OK\r\n\r\nHello!")
|
self.fakehttp(b"HTTP/1.1 200 OK\r\n\r\nHello!")
|
||||||
resp = urlopen("http://www.python.org")
|
try:
|
||||||
self.assertTrue(resp.fp.will_close)
|
resp = urlopen("http://www.python.org")
|
||||||
|
self.assertTrue(resp.fp.will_close)
|
||||||
|
finally:
|
||||||
|
self.unfakehttp()
|
||||||
|
|
||||||
def test_read_0_9(self):
|
def test_read_0_9(self):
|
||||||
# "0.9" response accepted (but not "simple responses" without
|
# "0.9" response accepted (but not "simple responses" without
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue