Author: Romain Guillebert <[email protected]>
Branch: numpy-subarrays
Changeset: r64088:9e3624021257
Date: 2013-05-14 18:13 +0200
http://bitbucket.org/pypy/pypy/changeset/9e3624021257/
Log: Fix test
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
@@ -2705,8 +2705,8 @@
d = dtype([("x", "int", 3), ("y", "float", 5)])
a = array([([1, 2, 3], [0.5, 1.5, 2.5, 3.5, 4.5])], dtype=d)
- assert a[0]["x"] == [1, 2, 3].all()
- assert a[1]["y"] == [0.5, 1.5, 2.5, 3.5, 4.5].all()
+ assert (a[0]["x"] == [1, 2, 3]).all()
+ assert (a[1]["y"] == [0.5, 1.5, 2.5, 3.5, 4.5]).all()
class AppTestPyPy(BaseNumpyAppTest):
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit