/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

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

  • Committer: Andrew Bennetts
  • Date: 2011-02-07 04:14:29 UTC
  • mfrom: (5535.4.26 fetch-all-tags-309682)
  • mto: This revision was merged to the branch mainline in revision 5648.
  • Revision ID: andrew.bennetts@canonical.com-20110207041429-3kc1blj34rvvxod9
Merge fetch-all-tags-309682.

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()