Hi,

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):
        raise

But I'm guessing not. Any advice before I start working up a patch?

-- 
Brian Sutherland

-- 
You received this message because you are subscribed to the Google Groups 
"pylons-devel" group.
To post to this group, send email to pylons-devel@googlegroups.com.
To unsubscribe from this group, send email to 
pylons-devel+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/pylons-devel?hl=en.

Reply via email to