Merge lp:~vila/bzr/563997-selftest-unicode-reporting into lp:bzr
Proposed by
Vincent Ladeuil
on 2010-04-15
| Status: | Merged |
|---|---|
| Approved by: | Robert Collins on 2010-04-16 |
| Approved revision: | 5160 |
| 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 | 2010-04-15 | Approve on 2010-04-16 | |
| Robert Collins | 2010-04-15 | Pending | |
| bzr-core | 2010-04-15 | Pending | |
|
Review via email:
|
|||
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.
| Vincent Ladeuil (vila) wrote : | # |
| Robert Collins (lifeless) wrote : | # |
It looks like ui.note is the more appropriate thing, to me.
review:
Approve
| Robert Collins (lifeless) wrote : | # |
Queued on 2010-04-16 08:10:22.

bug #563997 for easier reference.