[pypy-commit] pypy numppy-flatitter: an example of failing test

fijal noreply at buildbot.pypy.org
Thu Jan 19 18:08:54 CET 2012


Author: Maciej Fijalkowski <fijall at gmail.com>
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)


More information about the pypy-commit mailing list