diff options
| author | Jonathan Lange <jml@canonical.com> | 2008-12-12 12:00:38 +1100 |
|---|---|---|
| committer | Jonathan Lange <jml@canonical.com> | 2008-12-12 12:00:38 +1100 |
| commit | 37e5905d6caf96f70e9e3af5aa476aa754ccd3f0 (patch) | |
| tree | d1984a9157cbb01e7e29906ee1f2f8d1b17aff7c /python/subunit/__init__.py | |
| parent | 632755acd911e3149501d7e36a0c3426947ab918 (diff) | |
| parent | 150a47e415a72cf43b06b024faf8ea7aee0ab281 (diff) | |
| download | subunit-git-37e5905d6caf96f70e9e3af5aa476aa754ccd3f0.tar.gz | |
Split tracebacks by line, rather than by any whitespace.
Author: jml
Reviewer: lifeless
Diffstat (limited to 'python/subunit/__init__.py')
| -rw-r--r-- | python/subunit/__init__.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/python/subunit/__init__.py b/python/subunit/__init__.py index f0b0987..f52dbaa 100644 --- a/python/subunit/__init__.py +++ b/python/subunit/__init__.py @@ -214,25 +214,25 @@ class TestProtocolClient(unittest.TestResult): def addError(self, test, error): """Report an error in test test.""" - self._stream.write("error: %s [\n" % test.shortDescription()) - for line in self._exc_info_to_string(error, test).split(): + self._stream.write("error: %s [\n" % test.id()) + 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.shortDescription()) - for line in self._exc_info_to_string(error, test).split(): + self._stream.write("failure: %s [\n" % test.id()) + for line in self._exc_info_to_string(error, test).splitlines(): self._stream.write("%s\n" % line) self._stream.write("]\n") def addSuccess(self, test): """Report a success in a test.""" - self._stream.write("successful: %s\n" % test.shortDescription()) + self._stream.write("successful: %s\n" % test.id()) def startTest(self, test): """Mark a test as starting its test run.""" - self._stream.write("test: %s\n" % test.shortDescription()) + self._stream.write("test: %s\n" % test.id()) def RemoteError(description=""): |
