[pypy-commit] pypy numpy-multidim: fix the test. previous commit by accident - start working on slices

fijal noreply at buildbot.pypy.org
Thu Oct 27 16:14:41 CEST 2011


Author: Maciej Fijalkowski <fijall at gmail.com>
Branch: numpy-multidim
Changeset: r48504:c50cad7db70b
Date: 2011-10-27 12:52 +0200
http://bitbucket.org/pypy/pypy/changeset/c50cad7db70b/

Log:	fix the test. previous commit by accident - start working on slices

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
@@ -629,7 +629,7 @@
         a = numpy.zeros((4, 3, 2))
         raises(IndexError, a.__getitem__, (4,))
         raises(IndexError, a.__getitem__, (3, 3))
-        raises(IndexError, a.__getitem__, (:, 3))
+        raises(IndexError, a.__getitem__, (slice(None), 3))
         
 
 class AppTestSupport(object):


More information about the pypy-commit mailing list