diff options
author | Benjamin Peterson <benjamin@python.org> | 2015-01-26 04:31:58 (GMT) |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2015-01-26 04:31:58 (GMT) |
commit | 60a2f49c8cfeb632d38c7ffb8db622049e760a54 (patch) | |
tree | 8336202c76d0838826a8d4d4d35d3d1b97198039 /Lib/test/test_email/test_email.py | |
parent | b335dfe7fa95c8c68630e8f7dc738c7b66637e87 (diff) | |
parent | 155ceaa454ad9a623cade5ed326e6e1e70ce109d (diff) | |
download | cpython-60a2f49c8cfeb632d38c7ffb8db622049e760a54.zip cpython-60a2f49c8cfeb632d38c7ffb8db622049e760a54.tar.gz cpython-60a2f49c8cfeb632d38c7ffb8db622049e760a54.tar.bz2 |
merge 3.4 (#19996)
Diffstat (limited to 'Lib/test/test_email/test_email.py')
-rw-r--r-- | Lib/test/test_email/test_email.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Lib/test/test_email/test_email.py b/Lib/test/test_email/test_email.py index d16d461..218ce0c 100644 --- a/Lib/test/test_email/test_email.py +++ b/Lib/test/test_email/test_email.py @@ -3393,6 +3393,12 @@ class TestFeedParsers(TestEmailBase): feedparser.feed(chunk) return feedparser.close() + def test_empty_header_name_handled(self): + # Issue 19996 + msg = self.parse("First: val\n: bad\nSecond: val") + self.assertEqual(msg['First'], 'val') + self.assertEqual(msg['Second'], 'val') + def test_newlines(self): m = self.parse(['a:\nb:\rc:\r\nd:\n']) self.assertEqual(m.keys(), ['a', 'b', 'c', 'd']) |