Author: Mike Blume <[email protected]>
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)
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit