--- a/devtools/testlib.py Fri Dec 18 14:08:41 2009 +0100
+++ b/devtools/testlib.py Fri Dec 18 14:09:24 2009 +0100
@@ -448,7 +448,11 @@
@cached
def app(self):
"""return a cubicweb publisher"""
- return application.CubicWebPublisher(self.config, vreg=self.vreg)
+ publisher = application.CubicWebPublisher(self.config, vreg=self.vreg)
+ def raise_error_handler(*args, **kwargs):
+ raise
+ publisher.error_handler = raise_error_handler
+ return publisher
requestcls = fake.FakeRequest
def request(self, *args, **kwargs):