summaryrefslogtreecommitdiff
path: root/numpy
diff options
context:
space:
mode:
authorStefan van der Walt <stefan@sun.ac.za>2008-04-05 22:28:10 +0000
committerStefan van der Walt <stefan@sun.ac.za>2008-04-05 22:28:10 +0000
commit481c25db0deba1a0405f1b8ea4df2172eae48ed5 (patch)
tree339de18396f050fd0704b3c90ddeaf3e82f617b1 /numpy
parentaf8556593f4a4ce5e79926463a2c00bd9bd298b7 (diff)
downloadnumpy-481c25db0deba1a0405f1b8ea4df2172eae48ed5.tar.gz
Test effect of newaxis indexing on array scalar.
Diffstat (limited to 'numpy')
-rw-r--r--numpy/core/tests/test_scalarmath.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/numpy/core/tests/test_scalarmath.py b/numpy/core/tests/test_scalarmath.py
index 3950f02b9..788963e7d 100644
--- a/numpy/core/tests/test_scalarmath.py
+++ b/numpy/core/tests/test_scalarmath.py
@@ -79,6 +79,7 @@ class TestIndexing(NumpyTestCase):
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):