[NumPy-Tickets] [NumPy] #1468: Datetime test_creation_overflow fails

NumPy Trac numpy-tickets@scipy....
Sun May 9 07:20:36 CDT 2010


#1468: Datetime test_creation_overflow fails
-------------------------+--------------------------------------------------
  Reporter:  pv          |       Owner:  stefan
      Type:  defect      |      Status:  closed
  Priority:  normal      |   Milestone:  2.0.0 
 Component:  numpy.core  |     Version:  devel 
Resolution:  fixed       |    Keywords:        
-------------------------+--------------------------------------------------
Changes (by pv):

  * status:  new => closed
  * resolution:  => fixed


Comment:

 Actually the bug is not in datetime code. The test should probably use
 `np.int64` instead of `int`. Fixed in r8400.

 Compare,
 {{{
 >>> import numpy as np
 >>> x = np.int32(322689600)
 >>> x *= 1000
 Warning: overflow encountered in long_scalars
 >>> x
 567052800
 >>> type(x)
 <type 'numpy.int32'>
 }}}

-- 
Ticket URL: <http://projects.scipy.org/numpy/ticket/1468#comment:5>
NumPy <http://projects.scipy.org/numpy>
My example project


More information about the NumPy-Tickets mailing list