~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

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

merge trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
17
17
"""Test locks across all branch implemenations"""
18
18
 
19
19
from bzrlib import (
20
 
    branch as _mod_branch,
21
20
    errors,
22
21
    tests,
23
22
    )
501
500
        self.assertThat(branch.lock_read, ReturnsUnlockable(branch))
502
501
 
503
502
    def test_lock_write_locks_repo_too(self):
504
 
        if isinstance(self.branch_format, _mod_branch.BzrBranchFormat4):
505
 
            # Branch format 4 is combined with the repository, so this test
506
 
            # doesn't apply.
507
 
            return
508
503
        branch = self.make_branch('b')
509
504
        branch = branch.bzrdir.open_branch()
510
505
        branch.lock_write()