~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/__init__.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2009-05-12 09:05:30 UTC
  • mfrom: (4350.1.1 integration)
  • Revision ID: pqm@pqm.ubuntu.com-20090512090530-v9355ohetp61ltc1
(vila) Fix unbalanced locks in tests,
        the check is now fatal (use -Dlock to turn it into a warning).

Show diffs side-by-side

added added

removed removed

Lines of Context:
884
884
    def _track_locks(self):
885
885
        """Track lock activity during tests."""
886
886
        self._lock_actions = []
887
 
        self._lock_check_thorough = 'lock' in debug.debug_flags
 
887
        self._lock_check_thorough = 'lock' not in debug.debug_flags
888
888
        self.addCleanup(self._check_locks)
889
889
        _mod_lock.Lock.hooks.install_named_hook('lock_acquired',
890
890
                                                self._lock_acquired, None)