Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b7b54f7 commit e3dd5b2Copy full SHA for e3dd5b2
1 file changed
Lib/email/test/test_email.py
@@ -2107,10 +2107,12 @@ def test_parsedate_compact_no_dayofweek(self):
2107
def test_parsedate_acceptable_to_time_functions(self):
2108
eq = self.assertEqual
2109
timetup = Utils.parsedate('5 Feb 2003 13:47:26 -0800')
2110
- eq(int(time.mktime(timetup)), 1044470846)
+ t = int(time.mktime(timetup))
2111
+ eq(time.localtime(t)[:6], timetup[:6])
2112
eq(int(time.strftime('%Y', timetup)), 2003)
2113
timetup = Utils.parsedate_tz('5 Feb 2003 13:47:26 -0800')
- eq(int(time.mktime(timetup[:9])), 1044470846)
2114
+ t = int(time.mktime(timetup[:9]))
2115
2116
eq(int(time.strftime('%Y', timetup[:9])), 2003)
2117
2118
def test_parseaddr_empty(self):
0 commit comments