Commit 7e12d975 authored by Tres Seaver's avatar Tres Seaver

Update to mechanize 0.10.

o Fix fragile doctest for changed traceback.

o Drop never-releaesed '_seek' feature from
  Products.Five.testbrowser.PublisherMechanizeBrowser.
parent 64e56e38
......@@ -41,8 +41,8 @@ We don't have access, we will not be able to get to the protected add form:
>>> browser.open("http://localhost/test_folder_1_/ftf/+/protectedaddform.html")
Traceback (most recent call last):
...
HTTPError: HTTP Error 401: Unauthorized
...
httperror_seek_wrapper: HTTP Error 401: Unauthorized
For a protected one we need a manager account:
......
......@@ -86,13 +86,13 @@ class PublisherMechanizeBrowser(mechanize.Browser):
default_others = ['_http_error', '_http_request_upgrade',
'_http_default_error']
default_features = ['_redirect', '_cookies', '_referer', '_refresh',
'_equiv', '_basicauth', '_digestauth', '_seek' ]
'_equiv', '_basicauth', '_digestauth' ]
def __init__(self, *args, **kws):
inherited_handlers = ['_unknown', '_http_error',
'_http_request_upgrade', '_http_default_error', '_basicauth',
'_digestauth', '_redirect', '_cookies', '_referer',
'_refresh', '_equiv', '_seek', '_gzip']
'_refresh', '_equiv', '_gzip']
self.handler_classes = {"http": PublisherHTTPHandler}
for name in inherited_handlers:
......
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