devtools/testlib.py
changeset 10112 ff7f86d8393d
parent 10108 129af90b2364
child 10219 eacb8ea38bf5
child 10259 2be01bb6f9de
equal deleted inserted replaced
10111:99863d0cbb10 10112:ff7f86d8393d
   598                 self.repo.close(self._admin_session.sessionid)
   598                 self.repo.close(self._admin_session.sessionid)
   599             self._admin_session = None
   599             self._admin_session = None
   600         while self._cleanups:
   600         while self._cleanups:
   601             cleanup, args, kwargs = self._cleanups.pop(-1)
   601             cleanup, args, kwargs = self._cleanups.pop(-1)
   602             cleanup(*args, **kwargs)
   602             cleanup(*args, **kwargs)
       
   603         self.repo.turn_repo_off()
   603 
   604 
   604     def _patch_SendMailOp(self):
   605     def _patch_SendMailOp(self):
   605         # monkey patch send mail operation so emails are sent synchronously
   606         # monkey patch send mail operation so emails are sent synchronously
   606         _old_mail_postcommit_event = SendMailOp.postcommit_event
   607         _old_mail_postcommit_event = SendMailOp.postcommit_event
   607         SendMailOp.postcommit_event = SendMailOp.sendmails
   608         SendMailOp.postcommit_event = SendMailOp.sendmails