[Numpy-svn] r4965 - trunk/numpy/core/tests

numpy-svn at scipy.org numpy-svn at scipy.org
Sat Apr 5 18:28:18 EDT 2008


Author: stefan
Date: 2008-04-05 17:28:10 -0500 (Sat, 05 Apr 2008)
New Revision: 4965

Modified:
   trunk/numpy/core/tests/test_scalarmath.py
Log:
Test effect of newaxis indexing on array scalar.


Modified: trunk/numpy/core/tests/test_scalarmath.py
===================================================================
--- trunk/numpy/core/tests/test_scalarmath.py	2008-04-05 16:49:18 UTC (rev 4964)
+++ trunk/numpy/core/tests/test_scalarmath.py	2008-04-05 22:28:10 UTC (rev 4965)
@@ -79,6 +79,7 @@
             x = value
             assert_array_equal(x[...],value)
             assert_array_equal(x[()],value)
+            assert_equal(x[None,...].shape,(1,))
 
 class TestRepr(NumpyTestCase):
     def check_float_repr(self):




More information about the Numpy-svn mailing list