[New-bugs-announce] [issue31894] test_timestamp_naive failed on NetBSD

Serhiy Storchaka report at bugs.python.org
Sun Oct 29 17:10:45 EDT 2017


New submission from Serhiy Storchaka <storchaka+cpython at 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 <report at bugs.python.org>
<https://bugs.python.org/issue31894>
_______________________________________


More information about the New-bugs-announce mailing list