summaryrefslogtreecommitdiff
path: root/selftest
diff options
context:
space:
mode:
authorKamen Mazdrashki <kamenim@samba.org>2010-10-10 03:07:56 +0200
committerJelmer Vernooij <jelmer@samba.org>2010-10-10 01:50:09 +0000
commit27f72fb19b1b810c4cc778ca0f408da2f50fd2f5 (patch)
tree5c30e88ce47b26c81806cba3950d85c08ca62168 /selftest
parent3cd558dbeb2c543895847d4c5e21fe1f7f779a8c (diff)
downloadsamba-27f72fb19b1b810c4cc778ca0f408da2f50fd2f5.tar.gz
samba-27f72fb19b1b810c4cc778ca0f408da2f50fd2f5.tar.bz2
samba-27f72fb19b1b810c4cc778ca0f408da2f50fd2f5.zip
subunithelper: Don't access 'message' attribute directly as it deprecated
Signed-off-by: Jelmer Vernooij <jelmer@samba.org> Autobuild-User: Jelmer Vernooij <jelmer@samba.org> Autobuild-Date: Sun Oct 10 01:50:09 UTC 2010 on sn-devel-104
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]