[Numpy-discussion] Datetime overflow error, attn Stefan.

Charles R Harris charlesr.harris at gmail.com
Sat May 8 21:06:01 EDT 2010


On Sat, May 8, 2010 at 6:44 PM, Charles R Harris
<charlesr.harris at gmail.com>wrote:

> 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
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/numpy-discussion/attachments/20100508/808dc712/attachment.html>


More information about the NumPy-Discussion mailing list