cpython/Lib/email/test
R. David Murray 61746d580e #5610: use \Z not $ so we don't eat extra chars when body part ends with \r\n.
If a body part ended with \r\n, feedparser, using '$' to terminate its
search for the newline, would match on the \r\n, and think that it needed
to strip two characters in order to account for the line end before the
boundary.  That made it chop one too many characters off the end of
the body part.  Using \Z makes the match correct.

Patch and test by Tony Nelson.
2010-06-03 15:43:20 +00:00
..
data Bug 7755: audiotest.au is arguably copyrighted material, but definitely makes 2010-05-05 16:15:09 +00:00
__init__.py Big email 3.0 API changes, with updated unit tests and documentation. 2004-10-03 03:16:19 +00:00
test_email.py #5610: use \Z not $ so we don't eat extra chars when body part ends with \r\n. 2010-06-03 15:43:20 +00:00
test_email_codecs.py #2622 Import errors in email.message, from a py2app standalone application. 2009-07-11 14:33:51 +00:00
test_email_codecs_renamed.py fix import 2009-03-30 02:14:21 +00:00
test_email_renamed.py Issue #7143: get_payload used to strip any trailing newline from a 2010-03-08 02:04:06 +00:00
test_email_torture.py Add missing import when running these tests standalone. 2010-02-06 23:54:04 +00:00