Skip to content

Commit

Permalink
Fix a SAX parser breakage in the xml test runner for Hudson
Browse files Browse the repository at this point in the history
Signed-off-by: R. Tyler Ballance <tyler@slide.com>
  • Loading branch information
R. Tyler Ballance committed Apr 12, 2009
1 parent 47fe0c8 commit 80f7683
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Tests/xmlrunner.py
Expand Up @@ -74,7 +74,7 @@ def _print_error(self, stream, tagname, error):
text = escape(str(error[1])) text = escape(str(error[1]))
stream.write('\n') stream.write('\n')
stream.write(' <%s type="%s">%s\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() tb_stream = StringIO()
traceback.print_tb(error[2], None, tb_stream) traceback.print_tb(error[2], None, tb_stream)
stream.write(escape(tb_stream.getvalue())) stream.write(escape(tb_stream.getvalue()))
Expand Down

0 comments on commit 80f7683

Please sign in to comment.