~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_branch.py

  • Committer: Martin Pool
  • Date: 2006-04-13 03:12:21 UTC
  • mto: This revision was merged to the branch mainline in revision 1659.
  • Revision ID: mbp@sourcefrog.net-20060413031221-c5247090c275a7a3
Release more locks taken during test suite

Show diffs side-by-side

added added

removed removed

Lines of Context:
71
71
        self.assertIsDirectory('.bzr/branch', t)
72
72
        self.assertIsDirectory('.bzr/branch/lock', t)
73
73
        branch.lock_write()
74
 
        self.assertIsDirectory('.bzr/branch/lock/held', t)
 
74
        try:
 
75
            self.assertIsDirectory('.bzr/branch/lock/held', t)
 
76
        finally:
 
77
            branch.unlock()
75
78
 
76
79
 
77
80
class TestBranchEscaping(TestCaseWithTransport):