Merge lp:~gz/testtools/avoid_exception_unicode_method_bug_689858 into lp:~testtools-committers/testtools/trunk
Proposed by
Martin Packman
Status: | Merged | ||||
---|---|---|---|---|---|
Merged at revision: | 161 | ||||
Proposed branch: | lp:~gz/testtools/avoid_exception_unicode_method_bug_689858 | ||||
Merge into: | lp:~testtools-committers/testtools/trunk | ||||
Diff against target: |
12 lines (+2/-0) 1 file modified
testtools/tests/test_testresult.py (+2/-0) |
||||
To merge this branch: | bzr merge lp:~gz/testtools/avoid_exception_unicode_method_bug_689858 | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
testtools developers | Pending | ||
Review via email: mp+43967@code.launchpad.net |
Description of the change
This resolves a failure jam was having on Python 2.6.4 that I couldn't reproduce on Python 2.6.6 or 2.7 - it seems there was a broken __unicode__ method added to the Exception class which has since been removed again. As the test is just trying to make sure that the exception serialisation doesn't propagate stringification errors, overriding __unicode__ to raise as well should be enough.
To post a comment you must log in.
The problem versions are 2.6.0 -> 2.6.4 which have a very odd BaseException. __unicode_ _ method that instead of deferring to __str__ does its own thing: bugs.python. org/issue6108# msg96281>
<http://