devtools/testlib.py
changeset 4137 3a2d6c38bcd9
parent 4083 3b285889b8e9
child 4138 d087a3a3b16f
--- 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):