We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5966013 commit 06958b1Copy full SHA for 06958b1
1 file changed
tests/plugins.py
@@ -97,6 +97,8 @@ def finalize(self, result):
97
98
def formatErr(self, err):
99
exctype, value, tb = err
100
+ if not isinstance(value, exctype):
101
+ value = exctype(value)
102
return ''.join(traceback.format_exception(exctype, value, tb))
103
104
def startContext(self, ctx):
0 commit comments