From 19c10caaa41be087d0bed42a3654eaf8541164f9 Mon Sep 17 00:00:00 2001 From: Barry Warsaw Date: Tue, 13 Nov 2001 18:01:37 +0000 Subject: Add tests for bug #478115, parsedate_tz() IndexError when a Date: field exists with an empty value. --- Lib/test/test_rfc822.py | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'Lib/test/test_rfc822.py') diff --git a/Lib/test/test_rfc822.py b/Lib/test/test_rfc822.py index ab1746b126..cc6e27ba3c 100644 --- a/Lib/test/test_rfc822.py +++ b/Lib/test/test_rfc822.py @@ -117,6 +117,14 @@ class MessageTestCase(unittest.TestCase): ('', 'goit@lip.com'), ]) + self.check( + 'To: Some One \n' + 'From: Anudder Persin \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')]) -- cgit v1.2.1