[Python-checkins] cpython (merge 3.2 -> default): closes issue11609. buildbot related failures in the test_urllibnet.

senthil.kumaran python-checkins at python.org
Sat Mar 19 23:14:35 CET 2011


http://hg.python.org/cpython/rev/00459310b136
changeset: 68691:00459310b136
parent: 68687:481ad9129a0f
parent: 68689:6729a64c36d7
user: Senthil Kumaran <orsenthil at gmail.com>
date: Sun Mar 20 06:13:36 2011 +0800
summary:
 closes issue11609. buildbot related failures in the test_urllibnet.
files:
 Lib/test/test_urllib.py
diff --git a/Lib/test/test_urllib.py b/Lib/test/test_urllib.py
--- a/Lib/test/test_urllib.py
+++ b/Lib/test/test_urllib.py
@@ -176,8 +176,11 @@
 
 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
-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /