summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorBarry Warsaw <barry@python.org>2006-02-04 23:32:26 (GMT)
committerBarry Warsaw <barry@python.org>2006-02-04 23:32:26 (GMT)
commite3dd5b2c87dbab223d32fae544595cc5b54baf69 (patch)
tree59e7568455472f0ce0f07959ad994b3220e4f4d7 /Lib
parentb7b54f78b3ebdab34af6c73475598dc6f05d9f38 (diff)
downloadcpython-e3dd5b2c87dbab223d32fae544595cc5b54baf69.zip
cpython-e3dd5b2c87dbab223d32fae544595cc5b54baf69.tar.gz
cpython-e3dd5b2c87dbab223d32fae544595cc5b54baf69.tar.bz2
Resolves SF bug #1423972.
Diffstat (limited to 'Lib')
-rw-r--r--Lib/email/test/test_email.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/Lib/email/test/test_email.py b/Lib/email/test/test_email.py
index a68ceba..cf9f761 100644
--- a/Lib/email/test/test_email.py
+++ b/Lib/email/test/test_email.py
@@ -2107,10 +2107,12 @@ class TestMiscellaneous(TestEmailBase):
def test_parsedate_acceptable_to_time_functions(self):
eq = self.assertEqual
timetup = Utils.parsedate('5 Feb 2003 13:47:26 -0800')
- eq(int(time.mktime(timetup)), 1044470846)
+ t = int(time.mktime(timetup))
+ eq(time.localtime(t)[:6], timetup[:6])
eq(int(time.strftime('%Y', timetup)), 2003)
timetup = Utils.parsedate_tz('5 Feb 2003 13:47:26 -0800')
- eq(int(time.mktime(timetup[:9])), 1044470846)
+ t = int(time.mktime(timetup[:9]))
+ eq(time.localtime(t)[:6], timetup[:6])
eq(int(time.strftime('%Y', timetup[:9])), 2003)
def test_parseaddr_empty(self):