override publisher's error handler to ease debugging
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Fri, 18 Dec 2009 14:09:24 +0100
changeset 4137 3a2d6c38bcd9
parent 4136 47060a66c97f
child 4138 d087a3a3b16f
override publisher's error handler to ease debugging
devtools/testlib.py
--- 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):