[pypy-commit] pypy default: test duplicate axes also

bdkearns noreply at buildbot.pypy.org
Thu Nov 14 03:37:34 CET 2013


Author: Brian Kearns <bdkearns at gmail.com>
Branch: 
Changeset: r68012:c780cd5bf67f
Date: 2013-11-13 21:36 -0500
http://bitbucket.org/pypy/pypy/changeset/c780cd5bf67f/

Log:	test duplicate axes also

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
@@ -1758,6 +1758,8 @@
         exc = raises(ValueError, a.squeeze, 0)
         assert exc.value.message == "cannot select an axis to squeeze out " \
                                     "which has size greater than one"
+        exc = raises(ValueError, a.squeeze, (1, 1))
+        assert exc.value.message == "duplicate value in 'axis'"
 
     def test_swapaxes(self):
         from numpypy import array


More information about the pypy-commit mailing list