[pypy-commit] pypy nupypy-axis-arg-check: add test

mattip noreply at buildbot.pypy.org
Sat Jun 16 22:08:51 CEST 2012


Author: mattip <matti.picus at gmail.com>
Branch: nupypy-axis-arg-check
Changeset: r55697:d0663a09c8d2
Date: 2012-06-16 20:53 +0300
http://bitbucket.org/pypy/pypy/changeset/d0663a09c8d2/

Log:	add test

diff --git a/pypy/module/micronumpy/test/test_ufuncs.py b/pypy/module/micronumpy/test/test_ufuncs.py
--- a/pypy/module/micronumpy/test/test_ufuncs.py
+++ b/pypy/module/micronumpy/test/test_ufuncs.py
@@ -638,6 +638,7 @@
         assert count_reduce_items(a, 1) == 3
         assert count_reduce_items(a, (1, 2)) == 3 * 4
         raises(ValueError, count_reduce_items, a, -3)
+        raises(ValueError, count_reduce_items, a, (0, 2, -4))
 
     def test_true_divide(self):
         from _numpypy import arange, array, true_divide


More information about the pypy-commit mailing list