def METHOD_NAME(self):
    """HTTPExceptionHandler does not handle errors if requested via WSGI.
    This is needed when HTTPExceptionHandler is part of the WSGI pipeline.
    """
    class WSGITestAppWithHTTPExceptionHandler:
        """Minimized testbrowser.WSGITestApp with HTTPExceptionHandler."""
        def __call__(self, environ, start_response):
            publish = HTTPExceptionHandler(publish_module)
            wsgi_result = publish(environ, start_response)
            return wsgi_result
    self.folder._setObject('stub', ExceptionStub())
    transaction.commit()
    browser = Browser(wsgi_app=WSGITestAppWithHTTPExceptionHandler())
    browser.handleErrors = False
    with self.assertRaises(ValueError):
        browser.open('http://localhost/test_folder_1_/stub')
    self.assertIsNone(browser.contents)