summaryrefslogtreecommitdiff
path: root/python/subunit/__init__.py
diff options
context:
space:
mode:
authorJonathan Lange <jml@canonical.com>2008-05-06 00:16:42 +1200
committerJonathan Lange <jml@canonical.com>2008-05-06 00:16:42 +1200
commite881f76a91df0b8124c4fda5ee31cd03f3318e44 (patch)
tree5fa08b35253a1a2c36c3c4cc36be406966a8f3d0 /python/subunit/__init__.py
parent632755acd911e3149501d7e36a0c3426947ab918 (diff)
downloadsubunit-git-e881f76a91df0b8124c4fda5ee31cd03f3318e44.tar.gz
Use the test ID, not the test description.
Diffstat (limited to 'python/subunit/__init__.py')
-rw-r--r--python/subunit/__init__.py8
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=""):