Commit ce897b3a authored by godog's avatar godog

test: specify extra handlers in http.request

parent 0e3314d0
Pipeline #1753 passed with stage
in 15 minutes and 51 seconds
......@@ -134,8 +134,10 @@ def _request(url, opener, data=None):
return result
def request(url, ip_addr, follow_redirects=False, data=None):
opener = _build_opener(ip_addr, follow_redirects)
def request(url, ip_addr, follow_redirects=False, data=None, handlers=None):
if handlers is None:
handlers = []
opener = _build_opener(ip_addr, follow_redirects, *handlers)
return _request(url, opener, data=data)
......
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