Datetime overflow error, attn Stefan.
Hi Stefan, The windows buildbot throws the error ===================================================================== FAIL: test_creation_overflow (test_datetime.TestDateTime) ---------------------------------------------------------------------- Traceback (most recent call last): File "C:\buildbot\numpy\b11\numpy-install25\Lib\site-packages\numpy\core\tests\test_datetime.py", line 68, in test_creation_overflow err_msg='Datetime conversion error for unit %s' % unit) File "..\numpy-install25\Lib\site-packages\numpy\testing\utils.py", line 313, in assert_equal AssertionError: Items are not equal: Datetime conversion error for unit ms ACTUAL: 567052800 DESIRED: 322689600000 Because window's longs are always 32 bit, I think this is a good indication that somewhere a long is being used instead of an intp.
Hi Stefan,
The windows buildbot throws the error
===================================================================== FAIL: test_creation_overflow (test_datetime.TestDateTime) ---------------------------------------------------------------------- Traceback (most recent call last): File "C:\buildbot\numpy\b11\numpy-install25\Lib\site-packages\numpy\core\tests\test_datetime.py", line 68, in test_creation_overflow err_msg='Datetime conversion error for unit %s' % unit) File "..\numpy-install25\Lib\site-packages\numpy\testing\utils.py", line 313, in assert_equal AssertionError: Items are not equal: Datetime conversion error for unit ms ACTUAL: 567052800 DESIRED: 322689600000
Because window's longs are always 32 bit, I think this is a good indication that somewhere a long is being used instead of an intp.
Probably all references to long should be changed, it just isn't
On Sat, May 8, 2010 at 6:44 PM, Charles R Harris <charlesr.harris@gmail.com>wrote: portable. And do you have any idea what is supposed to happen here: if (year >= 0 || -1/4 == -1) I know this isn't your code, but you have been looking at it, so now you are responsible ;) Chuck
participants (2)
-
Charles R Harris
-
Pauli Virtanen