~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/__init__.py

  • Committer: John Arbash Meinel
  • Date: 2006-01-13 07:05:33 UTC
  • mto: (1685.1.1 bzr-encoding)
  • mto: This revision was merged to the branch mainline in revision 1752.
  • Revision ID: john@arbash-meinel.com-20060113070533-0342c358fb4e8416
Fix some of the tests.

Show diffs side-by-side

added added

removed removed

Lines of Context:
454
454
        stdout.encoding = encoding
455
455
        stderr.encoding = encoding
456
456
 
457
 
        self.log('run bzr: %s', ' '.join(argv))
 
457
        self.log('run bzr: %r', argv)
458
458
        # FIXME: don't call into logging here
459
459
        handler = logging.StreamHandler(stderr)
460
460
        handler.setFormatter(bzrlib.trace.QuietFormatter())
474
474
        out = stdout.getvalue()
475
475
        err = stderr.getvalue()
476
476
        if out:
477
 
            self.log('output:\n%s', out)
 
477
            self.log('output:\n%r', out)
478
478
        if err:
479
 
            self.log('errors:\n%s', err)
 
479
            self.log('errors:\n%r', err)
480
480
        if retcode is not None:
481
481
            self.assertEquals(result, retcode)
482
482
        return out, err