[pypy-commit] pypy default: Fix for 32 bits.

alex_gaynor noreply at buildbot.pypy.org
Thu Feb 2 16:01:19 CET 2012


Author: Alex Gaynor <alex.gaynor at gmail.com>
Branch: 
Changeset: r52030:f91dd3570b06
Date: 2012-02-02 10:01 -0500
http://bitbucket.org/pypy/pypy/changeset/f91dd3570b06/

Log:	Fix for 32 bits.

diff --git a/pypy/module/micronumpy/test/test_numarray.py b/pypy/module/micronumpy/test/test_numarray.py
--- a/pypy/module/micronumpy/test/test_numarray.py
+++ b/pypy/module/micronumpy/test/test_numarray.py
@@ -1169,7 +1169,7 @@
         for obj in [float, bool, int]:
             assert ones(1, dtype=obj).itemsize == dtype(obj).itemsize
         assert (ones(1) + ones(1)).itemsize == 8
-        assert array(1).itemsize == 8
+        assert array(1.0).itemsize == 8
         assert ones(1)[:].itemsize == 8
 
     def test_nbytes(self):
@@ -1179,7 +1179,7 @@
         assert ones((2, 2)).nbytes == 32
         assert ones((2, 2))[1:,].nbytes == 16
         assert (ones(1) + ones(1)).nbytes == 8
-        assert array(3).nbytes == 8
+        assert array(3.0).nbytes == 8
 
 
 class AppTestMultiDim(BaseNumpyAppTest):


More information about the pypy-commit mailing list