aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--tests/plugins.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/plugins.py b/tests/plugins.py
index 90c5c0d..4e7af97 100644
--- a/tests/plugins.py
+++ b/tests/plugins.py
@@ -97,6 +97,8 @@ class HtmlOutput(Plugin):
def formatErr(self, err):
exctype, value, tb = err
+ if not isinstance(value, exctype):
+ value = exctype(value)
return ''.join(traceback.format_exception(exctype, value, tb))
def startContext(self, ctx):