cpython: 00459310b136 (original) (raw)
Mercurial > cpython
changeset 68691:00459310b136
closes issue11609. buildbot related failures in the test_urllibnet. [#11609]
Senthil Kumaran orsenthil@gmail.com | |
---|---|
date | Sun, 20 Mar 2011 06:13:36 +0800 |
parents | 481ad9129a0f(current diff)6729a64c36d7(diff) |
children | 1a3eca36cecd a3b061697b18 |
files | Lib/test/test_urllib.py |
diffstat | 1 files changed, 5 insertions(+), 2 deletions(-)[+] [-] Lib/test/test_urllib.py 7 |
line wrap: on
line diff
--- a/Lib/test/test_urllib.py +++ b/Lib/test/test_urllib.py @@ -176,8 +176,11 @@ class urlopen_HttpTests(unittest.TestCas def test_willclose(self): self.fakehttp(b"HTTP/1.1 200 OK\r\n\r\nHello!")
resp = urlopen("http://www.python.org")[](#l1.7)
self.assertTrue(resp.fp.will_close)[](#l1.8)
try:[](#l1.9)
resp = urlopen("http://www.python.org")[](#l1.10)
self.assertTrue(resp.fp.will_close)[](#l1.11)
finally:[](#l1.12)
self.unfakehttp()[](#l1.13)
def test_read_0_9(self): # "0.9" response accepted (but not "simple responses" without