mirror of
https://github.com/python/cpython.git
synced 2025-11-02 03:01:58 +00:00
Add tests for bug #478115, parsedate_tz() IndexError when a Date:
field exists with an empty value.
This commit is contained in:
parent
4a106ee9e1
commit
19c10caaa4
2 changed files with 11 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue