[PATCH 11/55] Fix handling of unexpected failures in subunithelper.

Jelmer Vernooij jelmer at samba.org
Fri Feb 6 12:03:43 MST 2015


Change-Id: I0da9fcec4a54c43c171b76bb9015ea84389c9bc6
Signed-off-by: Jelmer Vernooij <jelmer at samba.org>
---
 selftest/subunithelper.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/selftest/subunithelper.py b/selftest/subunithelper.py
index ed90269..df6eb7c 100644
--- a/selftest/subunithelper.py
+++ b/selftest/subunithelper.py
@@ -572,7 +572,7 @@ class PlainFormatter(TestsuiteEnabledTestResult):
 
         self.test_output[self.name] += "UNEXPECTED(%s): %s\n" % (result, testname)
         if err is not None:
-            self.test_output[self.name] += "REASON: %s\n" % err.encode("utf-8").strip()
+            self.test_output[self.name] += "REASON: %s\n" % str(err[1]).strip()
 
         if self.immediate and not self.verbose:
             sys.stdout.write(self.test_output[self.name])
-- 
2.1.4



More information about the samba-technical mailing list