[SciPy-dev] 32bit vs 64bit doctest differences
Nathan Bell
wnbell at gmail.com
Mon Jan 14 15:15:10 EST 2008
It appears that numpy prints the 'dtype=intXX' part only when the size
of int differs from the machine word size. For example, consider the
following test run on a 64-bit machine:
File "/usr/lib/python2.5/site-packages/scipy/stsci/convolve/Convolve.py",
line 295, in scipy.stsci.convolve.Convolve.boxcar
Failed example:
boxcar(num.array([10, 0, 0, 0, 0, 0, 1000]), (3,),
mode="wrap").astype(num.longlong)
Expected:
array([336, 3, 0, 0, 0, 333, 336], dtype=int64)
Got:
array([336, 3, 0, 0, 0, 333, 336])
Should we just use dtype=int to avoid this issue? It appears
dtype=int chooses the native size.
--
Nathan Bell wnbell at gmail.com
http://graphics.cs.uiuc.edu/~wnbell/
More information about the SciPy-Dev
mailing list