Merge lp:~gz/bzr/escape_selftest_console_output_633216 into lp:bzr
Proposed by
Martin Packman
Status: | Merged |
---|---|
Approved by: | Vincent Ladeuil |
Approved revision: | no longer in the source branch. |
Merged at revision: | 5551 |
Proposed branch: | lp:~gz/bzr/escape_selftest_console_output_633216 |
Merge into: | lp:bzr |
Diff against target: |
73 lines (+31/-3) 3 files modified
bzrlib/tests/__init__.py (+6/-3) bzrlib/tests/test_selftest.py (+17/-0) doc/en/release-notes/bzr-2.3.txt (+8/-0) |
To merge this branch: | bzr merge lp:~gz/bzr/escape_selftest_console_output_633216 |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Vincent Ladeuil | Needs Information | ||
Martin Pool | Approve | ||
Review via email: mp+34890@code.launchpad.net |
Commit message
Backslash escape selftest output when printing to non-unicode consoles
Description of the change
Simple change to make selftest output escaped rather than breaking the run with a UnicodeEncodeError when on a console that can't encode a given unicode string. Hasn't been much of a problem so far as selftest has tended to print pre-encoded junk bytes, but testtools changes mean that unicode will now be better preserved, and some future fixes to selftest will also help.
The test overrides osutils.
To post a comment you must log in.
nice, thanks.
news entry please.