[devtools] call turn_repo_off in tearDown (closes #4673491)
authorJulien Cristau <julien.cristau@logilab.fr>
Wed, 02 Apr 2014 15:32:17 +0200
changeset 10112 ff7f86d8393d
parent 10111 99863d0cbb10
child 10115 6fd167b140cd
[devtools] call turn_repo_off in tearDown (closes #4673491) lets it catch leaked sessions even when running a single test
devtools/testlib.py
--- a/devtools/testlib.py	Mon Dec 01 15:57:12 2014 +0100
+++ b/devtools/testlib.py	Wed Apr 02 15:32:17 2014 +0200
@@ -600,6 +600,7 @@
         while self._cleanups:
             cleanup, args, kwargs = self._cleanups.pop(-1)
             cleanup(*args, **kwargs)
+        self.repo.turn_repo_off()
 
     def _patch_SendMailOp(self):
         # monkey patch send mail operation so emails are sent synchronously