diff options
| author | Jonathan Lange <jml@canonical.com> | 2008-06-19 10:55:24 +1000 |
|---|---|---|
| committer | Jonathan Lange <jml@canonical.com> | 2008-06-19 10:55:24 +1000 |
| commit | 150a47e415a72cf43b06b024faf8ea7aee0ab281 (patch) | |
| tree | d1984a9157cbb01e7e29906ee1f2f8d1b17aff7c /python/subunit/__init__.py | |
| parent | 430fb492198e04da4f1331c2357147f53938613d (diff) | |
| download | subunit-git-150a47e415a72cf43b06b024faf8ea7aee0ab281.tar.gz | |
Split tracebacks by *line* rather than by any whitespace.
Diffstat (limited to 'python/subunit/__init__.py')
| -rw-r--r-- | python/subunit/__init__.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/python/subunit/__init__.py b/python/subunit/__init__.py index 5ee25d1..f52dbaa 100644 --- a/python/subunit/__init__.py +++ b/python/subunit/__init__.py @@ -215,14 +215,14 @@ class TestProtocolClient(unittest.TestResult): def addError(self, test, error): """Report an error in test test.""" self._stream.write("error: %s [\n" % test.id()) - for line in self._exc_info_to_string(error, test).split(): + for line in self._exc_info_to_string(error, test).splitlines(): self._stream.write("%s\n" % line) self._stream.write("]\n") def addFailure(self, test, error): """Report a failure in test test.""" self._stream.write("failure: %s [\n" % test.id()) - for line in self._exc_info_to_string(error, test).split(): + for line in self._exc_info_to_string(error, test).splitlines(): self._stream.write("%s\n" % line) self._stream.write("]\n") |
