[devtools/testlib] Disable pause trace in setUp
Closes #9856028.
--- a/cubicweb/devtools/testlib.py Tue Jan 12 19:50:57 2016 +0100
+++ b/cubicweb/devtools/testlib.py Thu Jan 14 16:24:01 2016 +0100
@@ -32,7 +32,7 @@
import yams.schema
from logilab.common.testlib import TestCase, InnerTest, Tags
-from logilab.common.pytest import nocoverage, pause_trace
+from logilab.common.pytest import nocoverage
from logilab.common.debugger import Debugger
from logilab.common.umessage import message_from_string
from logilab.common.decorators import cached, classproperty, clear_cache, iclassmethod
@@ -402,16 +402,15 @@
def setUp(self):
# monkey patch send mail operation so emails are sent synchronously
self._patch_SendMailOp()
- with pause_trace():
- previous_failure = self.__class__.__dict__.get('_repo_init_failed')
- if previous_failure is not None:
- self.skipTest('repository is not initialised: %r' % previous_failure)
- try:
- self._init_repo()
- except Exception as ex:
- self.__class__._repo_init_failed = ex
- raise
- self.addCleanup(self._close_access)
+ previous_failure = self.__class__.__dict__.get('_repo_init_failed')
+ if previous_failure is not None:
+ self.skipTest('repository is not initialised: %r' % previous_failure)
+ try:
+ self._init_repo()
+ except Exception as ex:
+ self.__class__._repo_init_failed = ex
+ raise
+ self.addCleanup(self._close_access)
self.config.set_anonymous_allowed(self.anonymous_allowed)
self.setup_database()
MAILBOX[:] = [] # reset mailbox