~subunit/subunit/trunk

« back to all changes in this revision

Viewing changes to python/subunit/__init__.py

  • Committer: Robert Collins
  • Date: 2010-06-11 01:35:58 UTC
  • Revision ID: robertc@robertcollins.net-20100611013558-urq9p0f3eaq8j4dm
* Old style tracebacks with no encoding info are now treated as UTF8 rather
  than some-random-codec-like-ascii. (Robert Collins)

Show diffs side-by-side

added added

removed removed

Lines of Context:
619
619
            raise ValueError
620
620
        if error is not None:
621
621
            self._stream.write(" [\n")
 
622
            # XXX: this needs to be made much stricter, along the lines of
 
623
            # Martin[gz]'s work in testtools. Perhaps subunit can use that?
622
624
            for line in self._exc_info_to_string(error, test).splitlines():
623
625
                self._stream.write("%s\n" % line)
624
626
        else: