]> granicus.if.org Git - python/commit
test_formatdate(), test_formatdate_zoneoffsets(): Two changes. First,
authorBarry Warsaw <barry@python.org>
Mon, 19 Nov 2001 16:31:06 +0000 (16:31 +0000)
committerBarry Warsaw <barry@python.org>
Mon, 19 Nov 2001 16:31:06 +0000 (16:31 +0000)
commit75a40fcc3a57c76b3c844706a45a6a3f1a1e4a73
tree95f2a74ec4f51638e8f5e7e6a558636758993b6b
parentcd45a36959f3a8a74731c7dc25fee95108198e7d
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.
Lib/test/test_email.py