summaryrefslogtreecommitdiff
path: root/selftest
diff options
context:
space:
mode:
Diffstat (limited to 'selftest')
-rw-r--r--selftest/subunithelper.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/selftest/subunithelper.py b/selftest/subunithelper.py
index 13b0580ebf..b9291b8f25 100644
--- a/selftest/subunithelper.py
+++ b/selftest/subunithelper.py
@@ -495,7 +495,7 @@ class PlainFormatter(TestsuiteEnabledTestResult):
self.test_output[self.name] += "UNEXPECTED(%s): %s\n" % (result, testname)
if reason is not None:
- self.test_output[self.name] += "REASON: %s\n" % (reason[1].message.encode("utf-8").strip(),)
+ self.test_output[self.name] += "REASON: %s\n" % (unicode(reason[1]).encode("utf-8").strip(),)
if self.immediate and not self.verbose:
print self.test_output[self.name]