summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_email.py
diff options
context:
space:
mode:
authorBarry Warsaw <barry@python.org>2001-11-13 18:01:37 (GMT)
committerBarry Warsaw <barry@python.org>2001-11-13 18:01:37 (GMT)
commit19c10caaa41be087d0bed42a3654eaf8541164f9 (patch)
treedde4b3e86e5252a0062ed50c9a10712e1ffe5070 /Lib/test/test_email.py
parent4a106ee9e1551fc12c9a767b660c6cdf7b5d9823 (diff)
downloadcpython-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_email.py')
-rw-r--r--Lib/test/test_email.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/Lib/test/test_email.py b/Lib/test/test_email.py
index 6a66199..37ddc30 100644
--- a/Lib/test/test_email.py
+++ b/Lib/test/test_email.py
@@ -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