New submission from Serhiy Storchaka <storchaka+cpyt...@gmail.com>: $ ./python -m test -vuall test_datetime ... ====================================================================== FAIL: test_timestamp_naive (test.datetimetester.TestDateTime_Pure) ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/serhiy/py/cpython3.7/Lib/test/support/__init__.py", line 1622, in inner return func(*args, **kwds) File "/home/serhiy/py/cpython3.7/Lib/test/datetimetester.py", line 1977, in test_timestamp_naive self.assertEqual(t.timestamp(), 18000.0) AssertionError: 14400.0 != 18000.0
... Simple reproducer: $ TZ=EST+05EDT,M3.2.0,M11.1.0 ./python -c 'import datetime; print(datetime.datetime(1970, 1, 1).timestamp())' 14400.0 It should print 18000.0 (5 hours) instead of 14400.0 (4 hours). ---------- components: Library (Lib), Tests messages: 305192 nosy: belopolsky, serhiy.storchaka priority: normal severity: normal status: open title: test_timestamp_naive failed on NetBSD type: behavior versions: Python 3.6, Python 3.7 _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue31894> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com