Back port Python 2.7 fix for test_invalid_redirect() in test_urllib.py.

This commit is contained in:
Barry Warsaw 2012-02-20 14:43:22 -05:00
parent 66f3cc6f8d
commit f5a5beb339

View file

@ -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