summaryrefslogtreecommitdiff
path: root/Python/ceval.c
diff options
context:
space:
mode:
authorBarry Warsaw <barry@python.org>2001-11-19 16:31:06 +0000
committerBarry Warsaw <barry@python.org>2001-11-19 16:31:06 +0000
commit75a40fcc3a57c76b3c844706a45a6a3f1a1e4a73 (patch)
tree95f2a74ec4f51638e8f5e7e6a558636758993b6b /Python/ceval.c
parentcd45a36959f3a8a74731c7dc25fee95108198e7d (diff)
downloadcpython-git-75a40fcc3a57c76b3c844706a45a6a3f1a1e4a73.tar.gz
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 'Python/ceval.c')
0 files changed, 0 insertions, 0 deletions