R David Murray
e76ff4081a
merge #11584 : make Header and make_header handle binary unknown-8bit input
2011-06-18 13:02:42 -04:00
R David Murray
7df08379c6
merge #11584 : make decode_header handle Header objects correctly
...
This updates 12e39cd7a0e4 (merge of b21fdfa0019c), which fixed this bug
incorrectly.
2011-06-18 12:32:27 -04:00
R David Murray
3edd22ac95
#11731 : simplify/enhance parser/generator API by introducing policy objects.
...
This new interface will also allow for future planned enhancements
in control over the parser/generator without requiring any additional
complexity in the parser/generator API.
Patch reviewed by Éric Araujo and Barry Warsaw.
2011-04-18 13:59:37 -04:00
R David Murray
f3299989a2
Merge: #11492 : rewrite header folding algorithm. Less code, more passing tests.
2011-04-18 10:11:06 -04:00
R David Murray
e2c4cfce54
Merge: Improve message.py test coverage to 100%.
...
coverage.py reports 99% on branch coverage, but that appears to be
a bug or limitation in coverage.py.
2011-04-16 09:21:49 -04:00
R David Murray
b35c850a3f
#11684 : Complete parser bytes interface by adding BytesHeaderParser
...
Patch by Steffen Daode Nurpmeso.
2011-04-13 16:46:05 -04:00
R David Murray
eb9e074dca
Use stock assertEqual instead of custom ndiffAssertEqual.
...
Eventually I'll actually replace the calls in the tests themselves.
2011-04-10 15:28:29 -04:00
R David Murray
7ede59d77a
Merge #11492 : fix header truncation on folding when there are runs of split chars.
...
Not a complete fix for this issue.
2011-04-07 21:00:33 -04:00
R David Murray
63d320b44f
Merge: Improve test coverage of _split_ascii method.
2011-04-07 20:42:28 -04:00
R David Murray
8debacb51c
#1690608 : make formataddr RFC2047 aware.
...
Patch by Torsten Becker.
2011-04-06 09:35:57 -04:00
R David Murray
a0b1c77a19
Merge #11605 : don't use set/get_payload in feedparser; they do conversions.
2011-04-06 08:16:13 -04:00
R David Murray
a46ed1186f
Move assertBytesEqual to base test class, improve it, and hook into assertEqual
2011-03-31 13:11:40 -04:00
R David Murray
a256bacf91
Move infrastructure into __init__ to lay groundwork for splitting test_email.
...
The split probably won't happen for a while, but I might as well lay the
groundwork now since I'll be adding new test modules before too long.
2011-03-31 12:20:23 -04:00
R David Murray
28346b8077
Only a few files were opened using findfile; consistently don't use it.
2011-03-31 11:40:20 -04:00
R David Murray
1ebdd714ac
Add a __main__.py to test_email so it works with -m like it did before move.
2011-03-29 09:59:45 -04:00
R David Murray
961355a56a
Merge #11584 : Since __getitem__ returns headers, make decode_header handle them.
2011-03-25 15:31:52 -04:00
R David Murray
73bd0448b9
Merge #11606 : improved body_encode algorithm, no longer produces overlong lines
2011-03-24 12:28:39 -04:00
R David Murray
5839b9635c
Merge #11590 : fix quoprimime decode handling of empty strings and line endings.
2011-03-23 15:37:26 -04:00
R David Murray
3dcf745a61
Merge #11589 : add additional tests for the email quoprimime module.
2011-03-23 14:29:49 -04:00
R David Murray
39bc38c39c
Fix rename spelling error.
2011-03-21 17:36:15 -04:00
R David Murray
9aaba789b3
Correctly move email package tests to Lib/test.
2011-03-21 17:17:06 -04:00