Esempio n. 1
0
 def _tearDown(self, success):
     # Kill all unfinished transactions for next test.
     # Note we don't even abort them because it may require a valid
     # connection to a master node (see Storage.sync()).
     transaction.manager.__init__()
     if logging._max_size is not None:
         logging.flush()
Esempio n. 2
0
 def run(self):
     try:
         self._run()
     except Exception:
         logging.exception('Pre-mortem data:')
         self.log()
         logging.flush()
         raise
Esempio n. 3
0
 def run(self):
     try:
         self._run()
     except Exception:
         logging.exception('Pre-mortem data:')
         self.log()
         logging.flush()
         raise