Author: mattip <[email protected]>
Branch: 
Changeset: r64573:af17470a3036
Date: 2013-05-26 23:52 +0300
http://bitbucket.org/pypy/pypy/changeset/af17470a3036/

Log:    fix tests for 32 bit

diff --git a/pypy/module/micronumpy/test/test_dtypes.py 
b/pypy/module/micronumpy/test/test_dtypes.py
--- a/pypy/module/micronumpy/test/test_dtypes.py
+++ b/pypy/module/micronumpy/test/test_dtypes.py
@@ -786,7 +786,7 @@
 
     def test_create_subarrays(self):
         from numpypy import dtype
-        d = dtype([("x", "float", (2,)), ("y", "int", (2,))])
+        d = dtype([("x", "float", (2,)), ("y", "int64", (2,))])
         assert d.itemsize == 32
         assert d.name == "void256"
         keys = d.fields.keys()
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
@@ -2715,7 +2715,7 @@
         a[0]["x"][0] = 200
         assert a[0]["x"][0] == 200
 
-        d = dtype([("x", "int", (2, 3))])
+        d = dtype([("x", "int64", (2, 3))])
         a = array([([[1, 2, 3], [4, 5, 6]],)], dtype=d)
 
         assert a[0]["x"].dtype == dtype("int64")
@@ -2735,7 +2735,7 @@
     def test_multidim_subarray(self):
         from numpypy import dtype, array
 
-        d = dtype([("x", "int", (2, 3))])
+        d = dtype([("x", "int64", (2, 3))])
         a = array([([[1, 2, 3], [4, 5, 6]],)], dtype=d)
 
         assert a[0]["x"].dtype == dtype("int64")
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to