Merge lp:~gz/bzr/escape_selftest_console_output_633216 into lp:bzr
| Status: | Merged |
|---|---|
| Approved by: | Vincent Ladeuil on 2010-11-24 |
| Approved revision: | 5414 |
| 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 on 2010-10-11 | ||
| Martin Pool | 2010-09-08 | Approve on 2010-09-09 | |
|
Review via email:
|
|||
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.
| Martin Packman (gz) wrote : | # |
I was trying to write a testcase that didn't require testtools > 0.9.4 but looking at it again this will clearly break older versions. Should I skip the test on older versions, or give in and bump the selftest requirement?
| Vincent Ladeuil (vila) wrote : | # |
>>>>> Martin [gz] <email address hidden> writes:
> I was trying to write a testcase that didn't require testtools >
> 0.9.4 but looking at it again this will clearly break older
> versions. Should I skip the test on older versions, or give in and
> bump the selftest requirement?
bump
We may need to update pqm for landing it though.
But since we are fixing long standing bugs, I don't see how to avoid
that.
| Martin Packman (gz) wrote : | # |
Added NEWS entry as request, also put up lp:~gz/bzr/require_testtools_0.9.5_for_selftest which should be viewed as a prerequisite to this branch.
- 5412. By Martin Packman on 2010-09-10
-
Add NEWS entry, remove some unintended whitespace after the test
| Andrew Bennetts (spiv) wrote : | # |
There's a trivial typo, a missing double-quote at the end of a line:
+ "Text attachment: log\n"
The new test doesn't seem to pass for me (when I cherrypick this change into the 2.2 branch), but on the other hand the selftest run does appear to complete...
The approach seems reasonable, though.
- 5413. By Martin Packman on 2010-09-23
-
Fix SyntaxError causing typo in test spotted by spiv in review
| Martin Packman (gz) wrote : | # |
> There's a trivial typo, a missing double-quote at the end of a line:
>
> + "Text attachment: log\n"
Well spotted, I presume I must have added the line wrapping after running the test then not run it again before pushing.
> The new test doesn't seem to pass for me (when I cherrypick this change into
> the 2.2 branch), but on the other hand the selftest run does appear to
> complete...
Can you paste the exact failure? Also, what version of testtools do you have?
| Vincent Ladeuil (vila) wrote : | # |
@spiv: did you sort out why the test was failing for you ?
@gz: Are we still waiting for testtools to be upgraded on pqm for this mp too ?
| Martin Packman (gz) wrote : | # |
Yes, this does need a newer testtools on PQM as well. If that's going to be stuck for a long time yet, I could rewrite the test to skip if the version is too low.
| Martin Pool (mbp) wrote : | # |
I think we can upgrade testtools. Is there a release, ideally a packaged release, with the changes needed?
| Martin Packman (gz) wrote : | # |
See lp:~gz/bzr/require_testtools_0.9.5_for_selftest for details Martin, but either of the last two testtools releases would do, and Vincent has filed an rt we're waiting on.
- 5414. By Martin Packman on 2010-11-19
-
Merge require_
testtools_ 0.9.5_for_ selftest to reflect test requirment and resolve news conflict
| Martin Packman (gz) wrote : | # |
Have merged lp:~gz/bzr/require_testtools_0.9.5_for_selftest into this branch as the test requires it and news was going to conflict anyway. Once that lands, this should also be good to go.
| Martin Packman (gz) wrote : | # |
sent to pqm by email

nice, thanks.
news entry please.