~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/branch_implementations/test_locking.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:
432
432
            branch.unlock()
433
433
        # We should be unable to relock the repo.
434
434
        self.assertRaises(errors.LockContention, branch.lock_write)
 
435
        # Cleanup
 
436
        branch.lock_write(token)
 
437
        branch.dont_leave_lock_in_place()
 
438
        branch.unlock()
435
439
 
436
440
    def test_dont_leave_lock_in_place(self):
437
441
        branch = self.make_branch('b')