Issue 1454285: test_parsedate_acceptable_to_time_functions+DST == :-( (original) (raw)

TZ=UTC ./python ./Lib/test/test_email.py works fine. But "TZ=Australia/Melbourne ./python ./Lib/test/test_email.py" breaks - the date used in this test (5 Feb 2003) is during daylight savings time here. It's unclear to me what the test is trying to do, so assigning to Barry to look at.

FAILED (failures=1) Traceback (most recent call last): File "./Lib/test/test_email.py", line 13, in test_main() File "./Lib/test/test_email.py", line 10, in test_main run_suite(suite()) File "/home/anthony/src/py/pytrunk/python/Lib/test/test_support.py", line 285, in run_suite raise TestFailed(err) test.test_support.TestFailed: Traceback (most recent call last): File "/home/anthony/src/py/pytrunk/python/Lib/email/test/test_email.py", line 2127, in test_parsedate_acceptable_to_time_functions eq(time.localtime(t)[:6], timetup[:6]) AssertionError: (2003, 2, 5, 14, 47, 26) != (2003, 2, 5, 13, 47, 26)