[pypy-commit] pypy numpy-refactor: add a test, why not

fijal noreply at buildbot.pypy.org
Wed Sep 5 22:08:48 CEST 2012


Author: Maciej Fijalkowski <fijall at gmail.com>
Branch: numpy-refactor
Changeset: r57159:83ff968a1cb3
Date: 2012-09-05 21:39 +0200
http://bitbucket.org/pypy/pypy/changeset/83ff968a1cb3/

Log:	add a test, why not

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
@@ -1090,6 +1090,8 @@
         assert (a.mean(axis=-1) == a.mean(axis=2)).all()
         raises(ValueError, a.mean, -4)
         raises(ValueError, a.mean, 3)
+        a = arange(10).reshape(5, 2)
+        assert (a.mean(1) == [0.5, 2.5, 4.5, 6.5, 8.5]).all()
 
     def test_sum(self):
         from _numpypy import array


More information about the pypy-commit mailing list