mirror of
https://github.com/python/cpython.git
synced 2025-11-27 13:45:25 +00:00
Back port Python 2.7 fix for test_invalid_redirect() in test_urllib.py.
This commit is contained in:
parent
66f3cc6f8d
commit
f5a5beb339
1 changed files with 1 additions and 0 deletions
|
|
@ -950,6 +950,7 @@ class HandlerTests(unittest.TestCase):
|
||||||
h = urllib2.HTTPRedirectHandler()
|
h = urllib2.HTTPRedirectHandler()
|
||||||
o = h.parent = MockOpener()
|
o = h.parent = MockOpener()
|
||||||
req = Request(from_url)
|
req = Request(from_url)
|
||||||
|
req.timeout = socket._GLOBAL_DEFAULT_TIMEOUT
|
||||||
|
|
||||||
for scheme in invalid_schemes:
|
for scheme in invalid_schemes:
|
||||||
invalid_url = scheme + '://' + schemeless_url
|
invalid_url = scheme + '://' + schemeless_url
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue