~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

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

  • Committer: Vincent Ladeuil
  • Date: 2009-05-11 10:37:57 UTC
  • mto: (4350.1.1 integration)
  • mto: This revision was merged to the branch mainline in revision 4354.
  • Revision ID: v.ladeuil+lp@free.fr-20090511103757-x030vepytcneozqa
Fix the last 6 lock-related failures.

* tests/branch_implementations/test_locking.py:
(TestBranchLocking.test_leave_lock_in_place): Clean locks.

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')