Author: Maciej Fijalkowski <[email protected]>
Branch: numpy-multidim-shards
Changeset: r49409:ba1a3becc049
Date: 2011-11-14 18:59 +0100
http://bitbucket.org/pypy/pypy/changeset/ba1a3becc049/

Log:    one more test and make the other test failing without problems with
        repr

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
@@ -764,7 +764,15 @@
         from numpy import array, negative
         a = array([[1, 2], [3, 4]])
         b = negative(a + a)
-        assert (b == [[-1, -2], [-3, -4]]).all()
+        res = (b == [[-1, -2], [-3, -4]]).all()
+        assert res
+
+    def test_getitem_3(self):
+        from numpy import array
+        a = array([[1, 2], [3, 4], [5, 6], [7, 8], [9, 10], [11, 12], [13, 
14]])
+        b = a[::2]
+        c = b + b
+        assert c[1][1] == 16
 
     def test_broadcast(self):
         skip("not working")
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to