summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSenthil Kumaran <orsenthil@gmail.com>2011-03-19 22:13:36 (GMT)
committerSenthil Kumaran <orsenthil@gmail.com>2011-03-19 22:13:36 (GMT)
commit833d91204fe864fea881a2cdc292e792095f2d52 (patch)
tree9db4d0afa40f8bcccd38841a22f3ce9c16b21da2
parent89ba56d5fb1335ef808b87cd33cba95ea141c65d (diff)
parenta7f43cc09c11cfb58ec7be53156c55fdc4f38bf4 (diff)
downloadcpython-833d91204fe864fea881a2cdc292e792095f2d52.zip
cpython-833d91204fe864fea881a2cdc292e792095f2d52.tar.gz
cpython-833d91204fe864fea881a2cdc292e792095f2d52.tar.bz2
closes issue11609. buildbot related failures in the test_urllibnet.
-rw-r--r--Lib/test/test_urllib.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/Lib/test/test_urllib.py b/Lib/test/test_urllib.py
index d510e49..25ebeee 100644
--- a/Lib/test/test_urllib.py
+++ b/Lib/test/test_urllib.py
@@ -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