diff options
| author | Robert Collins <robertc@robertcollins.net> | 2010-06-11 13:35:58 +1200 |
|---|---|---|
| committer | Robert Collins <robertc@robertcollins.net> | 2010-06-11 13:35:58 +1200 |
| commit | 348614019d0d8d88914286505a0dcdf1eac92a2f (patch) | |
| tree | 3d0feb3f42ff5842ce294a7f4f9a0d66b801ba5b /python/subunit/__init__.py | |
| parent | 15319ea5c759d6128845035b356092106ad95864 (diff) | |
| download | subunit-git-348614019d0d8d88914286505a0dcdf1eac92a2f.tar.gz | |
* Old style tracebacks with no encoding info are now treated as UTF8 rather
than some-random-codec-like-ascii. (Robert Collins)
Diffstat (limited to 'python/subunit/__init__.py')
| -rw-r--r-- | python/subunit/__init__.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/python/subunit/__init__.py b/python/subunit/__init__.py index bcba63e..7734852 100644 --- a/python/subunit/__init__.py +++ b/python/subunit/__init__.py @@ -619,6 +619,8 @@ class TestProtocolClient(unittest.TestResult): raise ValueError if error is not None: self._stream.write(" [\n") + # XXX: this needs to be made much stricter, along the lines of + # Martin[gz]'s work in testtools. Perhaps subunit can use that? for line in self._exc_info_to_string(error, test).splitlines(): self._stream.write("%s\n" % line) else: |
