~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: 2008-09-05 21:25:48 UTC
  • mfrom: (3692.1.6 objectnotlocked)
  • Revision ID: pqm@pqm.ubuntu.com-20080905212548-ig8wqqpv4vb8b2v4
(spiv) Fix bug #237067 by having RemoteBranch properly lock its
        RemoteRepository.

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