[pypy-commit] pypy ndmin: test the no-op case for ndmin
MichaelBlume
noreply at buildbot.pypy.org
Thu Mar 22 20:54:01 CET 2012
Author: Mike Blume <mike at loggly.com>
Branch: ndmin
Changeset: r53924:cbe115c15c1a
Date: 2012-03-22 18:42 +0000
http://bitbucket.org/pypy/pypy/changeset/cbe115c15c1a/
Log: test the no-op case for ndmin
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
@@ -214,6 +214,12 @@
def test_ndmin(self):
from _numpypy import array
+ arr = array([[[1]]], ndmin=1)
+ assert arr.shape == (1, 1, 1)
+
+ def test_noop_ndmin(self):
+ from _numpypy import array
+
arr = array([1], ndmin=3)
assert arr.shape == (1, 1, 1)
More information about the pypy-commit
mailing list