mirror of
https://github.com/python/cpython.git
synced 2025-11-25 21:11:09 +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()
|
||||
o = h.parent = MockOpener()
|
||||
req = Request(from_url)
|
||||
req.timeout = socket._GLOBAL_DEFAULT_TIMEOUT
|
||||
|
||||
for scheme in invalid_schemes:
|
||||
invalid_url = scheme + '://' + schemeless_url
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue