diff options
author | Barry Warsaw <barry@python.org> | 2001-11-13 18:01:37 (GMT) |
---|---|---|
committer | Barry Warsaw <barry@python.org> | 2001-11-13 18:01:37 (GMT) |
commit | 19c10caaa41be087d0bed42a3654eaf8541164f9 (patch) | |
tree | dde4b3e86e5252a0062ed50c9a10712e1ffe5070 /Lib/test/test_rfc822.py | |
parent | 4a106ee9e1551fc12c9a767b660c6cdf7b5d9823 (diff) | |
download | cpython-19c10caaa41be087d0bed42a3654eaf8541164f9.zip cpython-19c10caaa41be087d0bed42a3654eaf8541164f9.tar.gz cpython-19c10caaa41be087d0bed42a3654eaf8541164f9.tar.bz2 |
Add tests for bug #478115, parsedate_tz() IndexError when a Date:
field exists with an empty value.
Diffstat (limited to 'Lib/test/test_rfc822.py')
-rw-r--r-- | Lib/test/test_rfc822.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Lib/test/test_rfc822.py b/Lib/test/test_rfc822.py index ab1746b..cc6e27b 100644 --- a/Lib/test/test_rfc822.py +++ b/Lib/test/test_rfc822.py @@ -118,6 +118,14 @@ class MessageTestCase(unittest.TestCase): ]) self.check( + 'To: Some One <someone@dom.ain>\n' + 'From: Anudder Persin <subuddy.else@dom.ain>\n' + 'Date:\n' + '\n' + 'test', + [('Some One', 'someone@dom.ain')]) + + self.check( 'To: person@dom.ain (User J. Person)\n\n', [('User J. Person', 'person@dom.ain')]) |