mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
Resolves SF bug #1423972.
This commit is contained in:
parent
b7b54f78b3
commit
e3dd5b2c87
1 changed files with 4 additions and 2 deletions
|
@ -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):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue