/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/__init__.py

  • Committer: Vincent Ladeuil
  • Date: 2011-05-27 17:57:23 UTC
  • mfrom: (5929 +trunk)
  • mto: This revision was merged to the branch mainline in revision 5930.
  • Revision ID: v.ladeuil+lp@free.fr-20110527175723-vvm07ydeccenexg9
Merge trunk resolving conflicts

Show diffs side-by-side

added added

removed removed

Lines of Context:
2013
2013
    def start_bzr_subprocess(self, process_args, env_changes=None,
2014
2014
                             skip_if_plan_to_signal=False,
2015
2015
                             working_dir=None,
2016
 
                             allow_plugins=False):
 
2016
                             allow_plugins=False, stderr=subprocess.PIPE):
2017
2017
        """Start bzr in a subprocess for testing.
2018
2018
 
2019
2019
        This starts a new Python interpreter and runs bzr in there.
2031
2031
        :param skip_if_plan_to_signal: raise TestSkipped when true and system
2032
2032
            doesn't support signalling subprocesses.
2033
2033
        :param allow_plugins: If False (default) pass --no-plugins to bzr.
 
2034
        :param stderr: file to use for the subprocess's stderr.  Valid values
 
2035
            are those valid for the stderr argument of `subprocess.Popen`.
 
2036
            Default value is ``subprocess.PIPE``.
2034
2037
 
2035
2038
        :returns: Popen object for the started process.
2036
2039
        """
2071
2074
            command.extend(process_args)
2072
2075
            process = self._popen(command, stdin=subprocess.PIPE,
2073
2076
                                  stdout=subprocess.PIPE,
2074
 
                                  stderr=subprocess.PIPE)
 
2077
                                  stderr=stderr)
2075
2078
        finally:
2076
2079
            restore_environment()
2077
2080
            if cwd is not None: