Author: Maciej Fijalkowski <[email protected]>
Branch: numppy-flatitter
Changeset: r51493:d0f36182d3eb
Date: 2012-01-19 19:08 +0200
http://bitbucket.org/pypy/pypy/changeset/d0f36182d3eb/

Log:    an example of failing 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
@@ -1309,6 +1309,11 @@
         raises(IndexError, "b[11]")
         raises(IndexError, "b[-11]")
 
+    def test_flatiter_view(self):
+        from _numpypy import arange
+        a = arange(10).reshape(5, 2)
+        assert (a[::2].flat == [0, 1, 4, 5, 8, 9])
+
     def test_flatiter_transpose(self):
         from _numpypy import arange
         a = arange(10)
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to