Commit f5a5beb3 authored by Barry Warsaw's avatar Barry Warsaw

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

parent 66f3cc6f
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment