New submission from shanmbic: The test for datetime module keeps failing.
test test_datetime failed -- Traceback (most recent call last): File "/home/shantanu/cpython/Lib/test/datetimetester.py", line 215, in test_issue23600 self.assertEqual(t - t.utcoffset(), u) AssertionError: datet[22 chars]26, 11, 1, tzinfo=<test.datetimetester.TestTZI[63 chars]538>) != datet[22 chars]26, 12, 1, tzinfo=<test.datetimetester.TestTZI[63 chars]538>) In datetimetester.py , in function test_issue23600 , line 196: the variable DSTDIFF has been assigned timedelta of 1 hour, I guess it should be , DSTDIFF = timedelta(hours=0) It passes the test then. The comment in the function code says - """Simple time zone which pretends to always be in summer time, since that's what shows the failure.""" Was the test written to fail on purpose ? Thanks ---------- components: Extension Modules, ctypes messages: 252609 nosy: shanmbic priority: normal severity: normal status: open title: test_datetime failing type: behavior versions: Python 3.6 _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue25354> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com