# HG changeset patch # User Julien Cristau # Date 1396445537 -7200 # Node ID ff7f86d8393db5841ff1d91343d3a4d227f5d091 # Parent 99863d0cbb106e7a8303e6473c6c734c687318fc [devtools] call turn_repo_off in tearDown (closes #4673491) lets it catch leaked sessions even when running a single test diff -r 99863d0cbb10 -r ff7f86d8393d 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