From: Antoine Pitrou Date: Sat, 26 Mar 2011 17:38:06 +0000 (+0100) Subject: Read HTTP response inside transient_internet() X-Git-Tag: v3.2.1b1~204 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d9faa201cedbb5a1882ad50e72e85c6f99c7f18e;p=python Read HTTP response inside transient_internet() --- d9faa201cedbb5a1882ad50e72e85c6f99c7f18e diff --cc Lib/test/test_urllibnet.py index c8851031e8,a019ddd2a6..32efb2b06e --- a/Lib/test/test_urllibnet.py +++ b/Lib/test/test_urllibnet.py @@@ -12,6 -12,6 +12,7 @@@ import tim class URLTimeoutTest(unittest.TestCase): ++ # XXX this test doesn't seem to test anything useful. TIMEOUT = 30.0 @@@ -24,7 -24,7 +25,7 @@@ def testURLread(self): with support.transient_internet("www.python.org"): f = urllib.request.urlopen("http://www.python.org/") -- x = f.read() ++ x = f.read() class urlopenNetworkTests(unittest.TestCase): """Tests urllib.reqest.urlopen using the network.