summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_rfc822.py
diff options
context:
space:
mode:
authorBarry Warsaw <barry@python.org>2004-08-07 16:38:40 (GMT)
committerBarry Warsaw <barry@python.org>2004-08-07 16:38:40 (GMT)
commite8bedeb45b134e7ae033560353ba064738170cd3 (patch)
tree907fce19729560604ac9a2da59efc4c5a6741fd6 /Lib/test/test_rfc822.py
parent2c178253bd1f78545d412670c59060dc7c676f8c (diff)
downloadcpython-e8bedeb45b134e7ae033560353ba064738170cd3.zip
cpython-e8bedeb45b134e7ae033560353ba064738170cd3.tar.gz
cpython-e8bedeb45b134e7ae033560353ba064738170cd3.tar.bz2
Resolution of bug #997368, "strftime() backward compatibility".
Specifically, time.strftime() no longer accepts a 0 in the yday position of a time tuple, since that can crash some platform strftime() implementations. parsedate_tz(): Change the return value to return 1 in the yday position. Update tests in test_rfc822.py and test_email.py
Diffstat (limited to 'Lib/test/test_rfc822.py')
-rw-r--r--Lib/test/test_rfc822.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_rfc822.py b/Lib/test/test_rfc822.py
index c450bf9..491bc8a 100644
--- a/Lib/test/test_rfc822.py
+++ b/Lib/test/test_rfc822.py
@@ -53,7 +53,7 @@ class MessageTestCase(unittest.TestCase):
out = m.getdate('date')
if out:
self.assertEqual(out,
- (1999, 1, 13, 23, 57, 35, 0, 0, 0),
+ (1999, 1, 13, 23, 57, 35, 0, 1, 0),
"date conversion failed")