~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

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

  • Committer: Patch Queue Manager
  • Date: 2012-03-06 19:49:19 UTC
  • mfrom: (6472.2.6 use-bzr-controldir)
  • Revision ID: pqm@pqm.ubuntu.com-20120306194919-kt7mj6xmhifsgees
(jelmer) Use bzrlib.controldir for generic access to control directories,
 rather than bzrlib.bzrdir. (Jelmer Vernooij)

Show diffs side-by-side

added added

removed removed

Lines of Context:
32
32
 
33
33
from bzrlib import tests
34
34
from bzrlib.branch import BzrBranch
35
 
from bzrlib.bzrdir import BzrDir
 
35
from bzrlib.controldir import ControlDir
36
36
from bzrlib.remote import RemoteBranchFormat
37
37
from bzrlib.tests.test_permissions import check_mode_r
38
38
 
126
126
            raise tests.TestNotApplicable('Remote branches have no'
127
127
                                          ' permission logic')
128
128
        self.make_branch_and_tree('.')
129
 
        bzrdir = BzrDir.open('.')
 
129
        bzrdir = ControlDir.open('.')
130
130
        # Monkey patch the transport
131
131
        _orig_stat = bzrdir.transport.stat
132
132
        def null_perms_stat(*args, **kwargs):