diff options
| author | Jonathan Lange <jml@canonical.com> | 2008-05-12 09:29:07 +1000 |
|---|---|---|
| committer | Jonathan Lange <jml@canonical.com> | 2008-05-12 09:29:07 +1000 |
| commit | 430fb492198e04da4f1331c2357147f53938613d (patch) | |
| tree | 5fa08b35253a1a2c36c3c4cc36be406966a8f3d0 /python/subunit/__init__.py | |
| parent | 632755acd911e3149501d7e36a0c3426947ab918 (diff) | |
| parent | e881f76a91df0b8124c4fda5ee31cd03f3318e44 (diff) | |
| download | subunit-git-430fb492198e04da4f1331c2357147f53938613d.tar.gz | |
Make that the subunit client reports the test id, not the short description.
Diffstat (limited to 'python/subunit/__init__.py')
| -rw-r--r-- | python/subunit/__init__.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/python/subunit/__init__.py b/python/subunit/__init__.py index f0b0987..5ee25d1 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()) + self._stream.write("error: %s [\n" % test.id()) for line in self._exc_info_to_string(error, test).split(): 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()) + self._stream.write("failure: %s [\n" % test.id()) for line in self._exc_info_to_string(error, test).split(): 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=""): |
