From e3dd5b2c87dbab223d32fae544595cc5b54baf69 Mon Sep 17 00:00:00 2001 From: Barry Warsaw Date: Sat, 4 Feb 2006 23:32:26 +0000 Subject: Resolves SF bug #1423972. --- Lib/email/test/test_email.py | 6 ++++-- 1 file 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): -- cgit v0.12