mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
The email module's parsedate_tz function now sets the daylight savings
flag to -1 (unknown) since it can't tell from the date whether it should be set. patch from Aldo Cortesi
This commit is contained in:
parent
9e5eb4ffbf
commit
93f5b93422
5 changed files with 11 additions and 5 deletions
|
@ -2113,12 +2113,12 @@ class TestMiscellaneous(TestEmailBase):
|
|||
def test_parsedate_no_dayofweek(self):
|
||||
eq = self.assertEqual
|
||||
eq(Utils.parsedate_tz('25 Feb 2003 13:47:26 -0800'),
|
||||
(2003, 2, 25, 13, 47, 26, 0, 1, 0, -28800))
|
||||
(2003, 2, 25, 13, 47, 26, 0, 1, -1, -28800))
|
||||
|
||||
def test_parsedate_compact_no_dayofweek(self):
|
||||
eq = self.assertEqual
|
||||
eq(Utils.parsedate_tz('5 Feb 2003 13:47:26 -0800'),
|
||||
(2003, 2, 5, 13, 47, 26, 0, 1, 0, -28800))
|
||||
(2003, 2, 5, 13, 47, 26, 0, 1, -1, -28800))
|
||||
|
||||
def test_parsedate_acceptable_to_time_functions(self):
|
||||
eq = self.assertEqual
|
||||
|
|
|
@ -2119,12 +2119,12 @@ class TestMiscellaneous(TestEmailBase):
|
|||
def test_parsedate_no_dayofweek(self):
|
||||
eq = self.assertEqual
|
||||
eq(utils.parsedate_tz('25 Feb 2003 13:47:26 -0800'),
|
||||
(2003, 2, 25, 13, 47, 26, 0, 1, 0, -28800))
|
||||
(2003, 2, 25, 13, 47, 26, 0, 1, -1, -28800))
|
||||
|
||||
def test_parsedate_compact_no_dayofweek(self):
|
||||
eq = self.assertEqual
|
||||
eq(utils.parsedate_tz('5 Feb 2003 13:47:26 -0800'),
|
||||
(2003, 2, 5, 13, 47, 26, 0, 1, 0, -28800))
|
||||
(2003, 2, 5, 13, 47, 26, 0, 1, -1, -28800))
|
||||
|
||||
def test_parsedate_acceptable_to_time_functions(self):
|
||||
eq = self.assertEqual
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue