From 27f72fb19b1b810c4cc778ca0f408da2f50fd2f5 Mon Sep 17 00:00:00 2001 From: Kamen Mazdrashki Date: Sun, 10 Oct 2010 03:07:56 +0200 Subject: subunithelper: Don't access 'message' attribute directly as it deprecated Signed-off-by: Jelmer Vernooij Autobuild-User: Jelmer Vernooij Autobuild-Date: Sun Oct 10 01:50:09 UTC 2010 on sn-devel-104 --- selftest/subunithelper.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'selftest/subunithelper.py') 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] -- cgit