~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_selftest.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:
622
622
        self.assertRaises(AssertionError, self._check_safety_net)
623
623
 
624
624
    def test_dangling_locks_cause_failures(self):
625
 
        # This is currently only enabled during debug runs, so turn debugging
626
 
        # on.
627
 
        debug.debug_flags.add('lock')
628
625
        class TestDanglingLock(TestCaseWithMemoryTransport):
629
626
            def test_function(self):
630
627
                t = self.get_transport('.')