~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: 2008-09-11 19:36:38 UTC
  • mfrom: (3703 +trunk)
  • mto: (3705.1.1 trunk2)
  • mto: This revision was merged to the branch mainline in revision 3708.
  • Revision ID: v.ladeuil+lp@free.fr-20080911193638-wtjyc1kcmacc6t1f
merge bzr.dev

Show diffs side-by-side

added added

removed removed

Lines of Context:
515
515
            branch.repository.unlock()
516
516
        finally:
517
517
            branch.unlock()
 
518
 
 
519
    def test_lock_and_unlock_leaves_repo_unlocked(self):
 
520
        branch = self.make_branch('b')
 
521
        branch.lock_write()
 
522
        branch.unlock()
 
523
        self.assertRaises(errors.LockNotHeld, branch.repository.unlock)
 
524