git.samba.org
/
sfrench
/
samba-autobuild
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e36f726
)
selftest: Avoid accessing deprecated BaseException.message.
author
Jelmer Vernooij
<jelmer@samba.org>
Thu, 30 Sep 2010 08:31:03 +0000
(10:31 +0200)
committer
Jelmer Vernooij
<jelmer@samba.org>
Thu, 30 Sep 2010 08:31:03 +0000
(10:31 +0200)
Thanks to Andreas for pointing this out.
selftest/subunithelper.py
patch
|
blob
|
history
diff --git
a/selftest/subunithelper.py
b/selftest/subunithelper.py
index 163f2ba7dbcb81765487ffa5cd48ebb815ea668f..5128d4a63ae09d0a2e31c5722faf6632ed59edbb 100644
(file)
--- 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)