~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/__init__.py

Various cosmetic changes.

Show diffs side-by-side

added added

removed removed

Lines of Context:
845
845
        :param retcode: The status code that is expected.  Defaults to 0.  If
846
846
        None is supplied, the status code is not checked.
847
847
        """
 
848
        # TODO: this ought to remove BZR_PDB when running the subprocess- the
 
849
        # user probably doesn't want to debug it, and anyhow since its files
 
850
        # are redirected they can't usefully get at it.  It just makes the
 
851
        # test suite hang.
848
852
        bzr_path = os.path.dirname(os.path.dirname(bzrlib.__file__))+'/bzr'
849
853
        args = list(args)
850
854
        process = Popen([sys.executable, bzr_path]+args, stdout=PIPE, 
1131
1135
        return self.__server
1132
1136
 
1133
1137
    def get_url(self, relpath=None):
1134
 
        """Get a URL for the readwrite transport.
 
1138
        """Get a URL (or maybe a path) for the readwrite transport.
1135
1139
 
1136
1140
        This will either be backed by '.' or to an equivalent non-file based
1137
1141
        facility.
1193
1197
    def make_branch_and_tree(self, relpath, format=None):
1194
1198
        """Create a branch on the transport and a tree locally.
1195
1199
 
1196
 
        Returns the tree.
 
1200
        If the transport is not a LocalTransport, the Tree can't be created on
 
1201
        the transport.  In that case the working tree is created in the local
 
1202
        directory, and the returned tree's branch and repository will also be
 
1203
        accessed locally.
 
1204
 
 
1205
        This will fail if the original default transport for this test
 
1206
        case wasn't backed by the working directory, as the branch won't
 
1207
        be on disk for us to open it.  
 
1208
 
 
1209
        :param format: The BzrDirFormat.
 
1210
        :returns: the WorkingTree.
1197
1211
        """
1198
1212
        # TODO: always use the local disk path for the working tree,
1199
1213
        # this obviously requires a format that supports branch references