Merge lp:~gz/bzr-builddeb/trivial_tweak_utf8_changelog_test into lp:bzr-builddeb
Status: | Superseded |
---|---|
Proposed branch: | lp:~gz/bzr-builddeb/trivial_tweak_utf8_changelog_test |
Merge into: | lp:bzr-builddeb |
Diff against target: |
14 lines (+2/-2) 1 file modified
tests/blackbox/test_builddeb.py (+2/-2) |
To merge this branch: | bzr merge lp:~gz/bzr-builddeb/trivial_tweak_utf8_changelog_test |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Bzr-builddeb-hackers | Pending | ||
Review via email:
|
This proposal has been superseded by a proposal from 2011-10-12.
Description of the change
Should fix a test failure seen on some builders from the blackbox test added for bug 853664, though I can't reproduce that problem locally. Simply changes the strings passed to debian.changelog module from unicode to pre-encoded utf-8 which, given the following traceback, should work:
Traceback (most recent call last):
File "/build/
self.
File "/build/
changelog.
File "/usr/lib/
file.
File "/usr/lib/
cl += str(block)
UnicodeEncodeError: 'ascii' codec can't encode character u'\u2026' in position 57: ordinal not in range(128)
Confusingly I have python-debian 0.1.18 and the natty builder has 0.1.18ubuntu2 so there must be some other factor involved.
<jelmer_> mgz: still there changelog' , 'w').write( """..." "") to make things simpler
<jelmer_> mgz: ?
<jelmer_> mgz: With your patch, that test fails for me on oneiric
<jelmer_> mgz: I wonder if we should just open('debian/