Author: Matti Picus <[email protected]>
Branch: numpypy-nditer
Changeset: r70361:8232f40c534a
Date: 2014-03-31 23:02 +0300
http://bitbucket.org/pypy/pypy/changeset/8232f40c534a/
Log: fix test for 32 bit
diff --git a/pypy/module/micronumpy/test/test_nditer.py
b/pypy/module/micronumpy/test/test_nditer.py
--- a/pypy/module/micronumpy/test/test_nditer.py
+++ b/pypy/module/micronumpy/test/test_nditer.py
@@ -265,10 +265,10 @@
assert (it.operands[1] == a.sum(axis=2)).all()
def test_get_dtypes(self):
- from numpy import array, dtype, nditer
+ from numpy import array, nditer
x = array([1, 2])
y = array([1.0, 2.0])
- assert nditer([x, y]).dtypes == (dtype("int64"), dtype("float64"))
+ assert nditer([x, y]).dtypes == (x.dtype, y.dtype)
def test_multi_index(self):
import numpy as np
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit