Author: Brian Kearns <bdkea...@gmail.com> Branch: Changeset: r69737:b03d8d46d83d Date: 2014-03-05 16:25 -0500 http://bitbucket.org/pypy/pypy/changeset/b03d8d46d83d/
Log: add this extra test diff --git a/pypy/module/micronumpy/test/test_ndarray.py b/pypy/module/micronumpy/test/test_ndarray.py --- a/pypy/module/micronumpy/test/test_ndarray.py +++ b/pypy/module/micronumpy/test/test_ndarray.py @@ -2328,6 +2328,16 @@ a[...] = 4 assert (a == [4, 4, 4]).all() + b = np.arange(24).reshape(2,3,4) + b[...] = 100 + assert (b == 100).all() + assert b.shape == (2, 3, 4) + b[...] = [10, 20, 30, 40] + assert (b[:,:,0] == 10).all() + assert (b[0,0,:] == [10, 20, 30, 40]).all() + assert b.shape == b[...].shape + assert (b == b[...]).all() + class AppTestNumArrayFromBuffer(BaseNumpyAppTest): spaceconfig = dict(usemodules=["micronumpy", "array", "mmap"]) _______________________________________________ pypy-commit mailing list pypy-commit@python.org https://mail.python.org/mailman/listinfo/pypy-commit