/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to bzrlib/tests/branch_implementations/test_locking.py

  • Committer: Vincent Ladeuil
  • Date: 2009-05-12 08:08:54 UTC
  • mfrom: (4327.1.12 failing-lock-tests)
  • mto: This revision was merged to the branch mainline in revision 4354.
  • Revision ID: v.ladeuil+lp@free.fr-20090512080854-jrius5e8zdapzin9
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')