mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Issue #14653: email.utils.mktime_tz() no longer relies on system
mktime() when timezone offest is supplied.
This commit is contained in:
commit
76935b9c8c
3 changed files with 13 additions and 4 deletions
|
@ -2722,6 +2722,12 @@ class TestMiscellaneous(TestEmailBase):
|
|||
eq(time.localtime(t)[:6], timetup[:6])
|
||||
eq(int(time.strftime('%Y', timetup[:9])), 2003)
|
||||
|
||||
def test_mktime_tz(self):
|
||||
self.assertEqual(utils.mktime_tz((1970, 1, 1, 0, 0, 0,
|
||||
-1, -1, -1, 0)), 0)
|
||||
self.assertEqual(utils.mktime_tz((1970, 1, 1, 0, 0, 0,
|
||||
-1, -1, -1, 1234)), -1234)
|
||||
|
||||
def test_parsedate_y2k(self):
|
||||
"""Test for parsing a date with a two-digit year.
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue