Merge lp:~vila/bzr/563997-selftest-unicode-reporting into lp:bzr
Proposed by
Vincent Ladeuil
Status: | Merged |
---|---|
Approved by: | Robert Collins |
Approved revision: | no longer in the source branch. |
Merged at revision: | not available |
Proposed branch: | lp:~vila/bzr/563997-selftest-unicode-reporting |
Merge into: | lp:bzr |
Diff against target: |
33 lines (+5/-2) 2 files modified
NEWS (+3/-0) bzrlib/tests/__init__.py (+2/-2) |
To merge this branch: | bzr merge lp:~vila/bzr/563997-selftest-unicode-reporting |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Martin Pool | Approve | ||
Robert Collins | Pending | ||
bzr-core | Pending | ||
Review via email: mp+23501@code.launchpad.net |
Commit message
Stop using ui.note for selftest strings that may be unicode, its not safe enough [yet].
Description of the change
When a test fails and the associated log or output can contain unicode chars.
ui.note() fails to encode them properly.
I don't know why we still use ui.note there and self.stream.write everywhere else but I
suspect a fallout from the transition to testtools.
AFAICS, there is no need to clear the progress bar so I just replace the ui.notes()
calls with self.stream.write() calls.
Robert, Martin, can you have a look and confirm ?
To post a comment you must log in.
bug #563997 for easier reference.