diff options
author | R. Tyler Ballance <tyler@slide.com> | 2009-04-11 23:03:47 -0400 |
---|---|---|
committer | R. Tyler Ballance <tyler@slide.com> | 2009-04-11 23:03:47 -0400 |
commit | 80f76839e4c86a7d83bc7a66564a4c8465b875e4 (patch) | |
tree | 9a56bff28f1f4c992596e709c409a8fd9da9ee3a | |
parent | 47fe0c8c3ba9872996c07a20b4c9bdf5e64d6c03 (diff) | |
download | python-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.py | 2 |
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())) |