( )⚙ D5769 tests: alter email `From` line to a value that's consistently parsed

This is an archive of the discontinued Mercurial Phabricator instance.

tests: alter email `From` line to a value that's consistently parsed
ClosedPublic

Authored by durin42 on Jan 30 2019, 7:44 PM.

Details

Summary

Python2:

email.header.decode_header('=?UTF-8?q?Rapha=C3=ABl=20Hertzog?= <hertzog@debian.org>')

[('Rapha\xc3\xabl Hertzog', 'utf-8'), ('<hertzog@debian.org>', None)]

Python3:

email.header.decode_header('=?UTF-8?q?Rapha=C3=ABl=20Hertzog?= <hertzog@debian.org>')

[(b'Rapha\xc3\xabl Hertzog', 'utf-8'), (b' <hertzog@debian.org>', None)]

So alter the input to an input that parses to the same result
consistently. After skimming the relevant RFC (1342), I'm not sure if
what we had was valid, or how I could modify it to be more consistent.

Diff Detail

Repository
rHG Mercurial
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

durin42 created this revision.Jan 30 2019, 7:44 PM
durin42 planned changes to this revision.Jan 30 2019, 7:48 PM

Oops. I'll be back to this.

durin42 edited the summary of this revision. (Show Details)Jan 30 2019, 8:06 PM
durin42 updated this revision to Diff 13619.
durin42 updated this revision to Diff 13624.Jan 30 2019, 8:09 PM
durin42 updated this revision to Diff 13630.Jan 30 2019, 8:33 PM
pulkit accepted this revision.Feb 1 2019, 1:13 PM
This revision was automatically updated to reflect the committed changes.