~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

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

Merge prerequisite branch and tweak test to be more compact and faster.

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()
 
44
        token = self.branch.repository.lock_write().repository_token
45
45
        if token is None:
46
46
            self.branch.repository.unlock()
47
47
            raise tests.TestNotApplicable(