We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 08bc84c commit 784fccfCopy full SHA for 784fccf
Lib/email/test/test_email.py
@@ -1959,10 +1959,12 @@ def test_parsedate_compact_no_dayofweek(self):
1959
def test_parsedate_acceptable_to_time_functions(self):
1960
eq = self.assertEqual
1961
timetup = Utils.parsedate('5 Feb 2003 13:47:26 -0800')
1962
- eq(int(time.mktime(timetup)), 1044470846)
+ t = int(time.mktime(timetup))
1963
+ eq(time.localtime(t)[:6], timetup[:6])
1964
eq(int(time.strftime('%Y', timetup)), 2003)
1965
timetup = Utils.parsedate_tz('5 Feb 2003 13:47:26 -0800')
- eq(int(time.mktime(timetup[:9])), 1044470846)
1966
+ t = int(time.mktime(timetup[:9]))
1967
1968
eq(int(time.strftime('%Y', timetup[:9])), 2003)
1969
1970
def test_parseaddr_empty(self):
0 commit comments