Author: Maciej Fijalkowski <[email protected]>
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
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to