~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

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

  • Committer: Andrew Bennetts
  • Date: 2010-06-11 07:59:43 UTC
  • mto: This revision was merged to the branch mainline in revision 5287.
  • Revision ID: andrew.bennetts@canonical.com-20100611075943-hlqvlv0gu7nfsznh
Fix trivial "was gc'd while locked" warning in test_lock_write_raises_in_lock_read.

Show diffs side-by-side

added added

removed removed

Lines of Context:
533
533
    def test_lock_write_raises_in_lock_read(self):
534
534
        branch = self.make_branch('b')
535
535
        branch.lock_read()
 
536
        self.addCleanup(branch.unlock)
536
537
        err = self.assertRaises(errors.ReadOnlyError, branch.lock_write)
537
538
 
538
539
    def test_lock_and_unlock_leaves_repo_unlocked(self):