I'm using zope.testbrowser to test a pyramid application I'm working on.
I'd really like to get the Browser.handleErrors knob working.
zope.testbrowser puts two variables into the WSGI envronment to try get
the application it's testing to throw rather than catch errors:
if not handle_errors:
# There doesn't seem to be a "Right Way" to do this
extra_environ['wsgi.handleErrors'] = False # zope.app.wsgi does this
extra_environ['paste.throw_errors'] = True # the paste way of doing this
Perhaps it's as simple as putting this in pyramid/router.py:
if not environ.get('wsgi.handleErrors', True):
But I'm guessing not. Any advice before I start working up a patch?