Skip to content
Browse files

Fix for zope.testbrowser 5.5.1

zopefoundation/zope.testbrowser#88 introduced a
new 'referrer' argument in the method, and since we're
overriding that method, we need to pass the argument along.
  • Loading branch information
mgedmin committed Nov 12, 2019
1 parent 5ea1194 commit d5db3baff4133214afbef556a86608d240726734
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/zodbbrowser/ftests/
@@ -53,7 +53,7 @@ def json(self):

# XXX: we should also wrap Form.submit the same way

def open(self, url):
def open(self, url, *args, **kwargs):
buffer = StringIO()
logger = logging.getLogger(self.capture_log)
handler = logging.StreamHandler(buffer)
@@ -62,7 +62,7 @@ def open(self, url):
return super(Browser, self).open(url)
return super(Browser, self).open(url, *args, **kwargs)
except HTTPError as e:
if e.code == 500:
raise InternalServerError(url, buffer.getvalue())

0 comments on commit d5db3ba

Please sign in to comment.
You can’t perform that action at this time.