summaryrefslogtreecommitdiff
path: root/selftest
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2010-09-30 10:31:03 +0200
committerJelmer Vernooij <jelmer@samba.org>2010-09-30 10:31:03 +0200
commit124d9fc4d13628ed310ccbdec181ed57be8a3531 (patch)
tree24f552741a2d8ddd48825872cda136febf54ba60 /selftest
parente36f72628173ad476744670a5dbf25a3335e0a19 (diff)
downloadsamba-124d9fc4d13628ed310ccbdec181ed57be8a3531.tar.gz
samba-124d9fc4d13628ed310ccbdec181ed57be8a3531.tar.bz2
samba-124d9fc4d13628ed310ccbdec181ed57be8a3531.zip
selftest: Avoid accessing deprecated BaseException.message.
Thanks to Andreas for pointing this out.
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 163f2ba7db..5128d4a63a 100644
--- a/selftest/subunithelper.py
+++ b/selftest/subunithelper.py
@@ -285,7 +285,7 @@ class FilterOps(testtools.testresult.TestResult):
self.xfail_added+=1
self.total_xfail+=1
if details is not None:
- details = subunit.RemoteError(details[1].message + xfail_reason.decode("utf-8"))
+ details = subunit.RemoteError(unicode(details[1]) + xfail_reason.decode("utf-8"))
else:
details = subunit.RemoteError(xfail_reason.decode("utf-8"))
self._ops.addExpectedFailure(test, details)