[pypy-commit] pypy refactor-signature: a missing test

fijal noreply at buildbot.pypy.org
Mon Dec 19 23:04:24 CET 2011


Author: Maciej Fijalkowski <fijall at gmail.com>
Branch: refactor-signature
Changeset: r50725:ace20e87f32a
Date: 2011-12-20 00:03 +0200
http://bitbucket.org/pypy/pypy/changeset/ace20e87f32a/

Log:	a missing 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
@@ -1121,6 +1121,11 @@
         a = array([1, 2, 3])
         assert dot(a.flat, a.flat) == 14
 
+    def test_flatiter_varray(self):
+        from numpypy import ones
+        a = ones((2, 2))
+        assert list(((a + a).flat)) == [2, 2, 2, 2]
+
     def test_slice_copy(self):
         from numpypy import zeros
         a = zeros((10, 10))


More information about the pypy-commit mailing list