summaryrefslogtreecommitdiffstats
path: root/Lib/email
diff options
context:
space:
mode:
authorBarry Warsaw <barry@python.org>2001-11-19 16:31:06 (GMT)
committerBarry Warsaw <barry@python.org>2001-11-19 16:31:06 (GMT)
commit75a40fcc3a57c76b3c844706a45a6a3f1a1e4a73 (patch)
tree95f2a74ec4f51638e8f5e7e6a558636758993b6b /Lib/email
parentcd45a36959f3a8a74731c7dc25fee95108198e7d (diff)
downloadcpython-75a40fcc3a57c76b3c844706a45a6a3f1a1e4a73.zip
cpython-75a40fcc3a57c76b3c844706a45a6a3f1a1e4a73.tar.gz
cpython-75a40fcc3a57c76b3c844706a45a6a3f1a1e4a73.tar.bz2
test_formatdate(), test_formatdate_zoneoffsets(): Two changes. First,
use the correct way to test for epoch, by looking at the year component of gmtime(0). Add clause for Unix epoch and Mac epoch (Tim, what is Windows epoch?). Also, get rid of the strptime() test, it was way too problematic given that strptime() is missing on many platforms and issues with locales. Instead, simply test that formatdate() gets the numeric timezone calculation correct for the altzone and timezone.
Diffstat (limited to 'Lib/email')
0 files changed, 0 insertions, 0 deletions