~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

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

  • Committer: John Arbash Meinel
  • Date: 2011-05-11 11:35:28 UTC
  • mto: This revision was merged to the branch mainline in revision 5851.
  • Revision ID: john@arbash-meinel.com-20110511113528-qepibuwxicjrbb2h
Break compatibility with python <2.6.

This includes auditing the code for places where we were doing
explicit 'sys.version' checks and removing them as appropriate.

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