From f5a5beb33985b4b55480de267084b90d89a5c5c4 Mon Sep 17 00:00:00 2001 From: Barry Warsaw Date: Mon, 20 Feb 2012 14:43:22 -0500 Subject: [PATCH] Back port Python 2.7 fix for test_invalid_redirect() in test_urllib.py. --- Lib/test/test_urllib2.py | 1 + 1 file changed, 1 insertion(+) diff --git a/Lib/test/test_urllib2.py b/Lib/test/test_urllib2.py index 8250aab935..640c6616ca 100644 --- a/Lib/test/test_urllib2.py +++ b/Lib/test/test_urllib2.py @@ -950,6 +950,7 @@ class HandlerTests(unittest.TestCase): h = urllib2.HTTPRedirectHandler() o = h.parent = MockOpener() req = Request(from_url) + req.timeout = socket._GLOBAL_DEFAULT_TIMEOUT for scheme in invalid_schemes: invalid_url = scheme + '://' + schemeless_url -- 2.50.0