diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2014-12-13 21:37:51 +0000 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2015-03-06 04:41:47 +0100 |
commit | ee0b548e9d84fb9cf206fcaa94c97ebd60225908 (patch) | |
tree | 8369fdc391fceb683f88d02805225c0c78788e00 /selftest | |
parent | 3f88e978a3513b177888d52d54cd947121854a17 (diff) | |
download | samba-ee0b548e9d84fb9cf206fcaa94c97ebd60225908.tar.gz |
Fix handling of unexpected failures in subunithelper.
Change-Id: I0da9fcec4a54c43c171b76bb9015ea84389c9bc6
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'selftest')
-rw-r--r-- | selftest/subunithelper.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/selftest/subunithelper.py b/selftest/subunithelper.py index ed90269f89c..df6eb7c14d8 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]) |