summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorR. Tyler Ballance <tyler@slide.com>2009-04-11 23:03:47 -0400
committerR. Tyler Ballance <tyler@slide.com>2009-04-11 23:03:47 -0400
commit80f76839e4c86a7d83bc7a66564a4c8465b875e4 (patch)
tree9a56bff28f1f4c992596e709c409a8fd9da9ee3a
parent47fe0c8c3ba9872996c07a20b4c9bdf5e64d6c03 (diff)
downloadpython-cheetah-80f76839e4c86a7d83bc7a66564a4c8465b875e4.tar.gz
Fix a SAX parser breakage in the xml test runner for Hudson
Signed-off-by: R. Tyler Ballance <tyler@slide.com>
-rw-r--r--src/Tests/xmlrunner.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Tests/xmlrunner.py b/src/Tests/xmlrunner.py
index f280551..401d8f5 100644
--- a/src/Tests/xmlrunner.py
+++ b/src/Tests/xmlrunner.py
@@ -74,7 +74,7 @@ class _TestInfo(object):
text = escape(str(error[1]))
stream.write('\n')
stream.write(' <%s type="%s">%s\n' \
- % (tagname, str(error[0]), text))
+ % (tagname, issubclass(error[0], Exception) and error[0].__name__ or str(error[0]), text))
tb_stream = StringIO()
traceback.print_tb(error[2], None, tb_stream)
stream.write(escape(tb_stream.getvalue()))