Merge lp:~vila/launchpad/py27-mail-header-continuation-lines into lp:launchpad
Proposed by
Vincent Ladeuil
on 2012-06-28
| Status: | Merged |
|---|---|
| Approved by: | Graham Binns on 2012-06-28 |
| Approved revision: | no longer in the source branch. |
| Merged at revision: | 15524 |
| Proposed branch: | lp:~vila/launchpad/py27-mail-header-continuation-lines |
| Merge into: | lp:launchpad |
| Diff against target: |
53 lines (+16/-9) 2 files modified
lib/lp/archiveuploader/tests/test_uploadprocessor.py (+4/-9) lib/lp/services/mail/tests/test_sendmail.py (+12/-0) |
| To merge this branch: | bzr merge lp:~vila/launchpad/py27-mail-header-continuation-lines |
| Related bugs: |
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Graham Binns (community) | code | 2012-06-28 | Approve on 2012-06-28 |
|
Review via email:
|
|||
Commit Message
Fix mail related test failure by allowing both types of continuation lines to be compatible with both python 2.6 and 2.7.
Description of the Change
Fix a test failure on python 2.7 where the way long mail header lines are split:
- 2.6 prefixed the continuation lines with '\t'
- 2.7 prefixed them with a single space.
Tested on lp setups for lucid and precise.
I also deleted some dead code left over from some very old refactoring.
To post a comment you must log in.

[1]
39 + def test_long_ subject_ wrapping( self):
This needs a comment at the start explaining the expected behaviour. You
could probably just move the comment from later in the test up here.