~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

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

  • Committer: Martin Pool
  • Date: 2010-04-01 04:41:18 UTC
  • mto: This revision was merged to the branch mainline in revision 5128.
  • Revision ID: mbp@sourcefrog.net-20100401044118-shyctqc02ob08ngz
ignore .testrepository

Show diffs side-by-side

added added

removed removed

Lines of Context:
41
41
    def test_unlocked_repo_locked(self):
42
42
        # break lock on the branch should try on the repository even
43
43
        # if the branch isn't locked
44
 
        token = self.branch.repository.lock_write().repository_token
 
44
        token = self.branch.repository.lock_write()
45
45
        if token is None:
46
46
            self.branch.repository.unlock()
47
47
            raise tests.TestNotApplicable(