Permalink
Browse files

Fix a SAX parser breakage in the xml test runner for Hudson

Signed-off-by: R. Tyler Ballance <tyler@slide.com>
  • Loading branch information...
1 parent 47fe0c8 commit 80f76839e4c86a7d83bc7a66564a4c8465b875e4 R. Tyler Ballance committed Apr 12, 2009
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/Tests/xmlrunner.py
View
2 src/Tests/xmlrunner.py
@@ -74,7 +74,7 @@ def _print_error(self, stream, tagname, error):
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()))

0 comments on commit 80f7683

Please sign in to comment.