[pypy-commit] pypy default: A failing test for flatten

alex_gaynor noreply at buildbot.pypy.org
Sat Jan 21 18:13:26 CET 2012


Author: Alex Gaynor <alex.gaynor at gmail.com>
Branch: 
Changeset: r51593:637b4cfa4f65
Date: 2012-01-21 11:13 -0600
http://bitbucket.org/pypy/pypy/changeset/637b4cfa4f65/

Log:	A failing test for flatten

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
@@ -1052,6 +1052,8 @@
         assert ((a + a).flatten() == [2, 4, 6]).all()
         a = array(2)
         assert (a.flatten() == [2]).all()
+        a = array([[1, 2], [3, 4]])
+        assert (a.T.flatten() == [1, 3, 2, 4]).all()
 
 
 class AppTestMultiDim(BaseNumpyAppTest):


More information about the pypy-commit mailing list