Add tests for bug #478115, parsedate_tz() IndexError when a Date:

field exists with an empty value.
This commit is contained in:
Barry Warsaw 2001-11-13 18:01:37 +00:00
parent 4a106ee9e1
commit 19c10caaa4
2 changed files with 11 additions and 0 deletions

View file

@ -937,6 +937,9 @@ class TestMiscellaneous(unittest.TestCase):
toff = time.timezone
self.assertEqual(offset, toff)
def test_parsedate(self):
self.assertEqual(Utils.parsedate(''), None)
# Test the iterator/generators