diff options
author | Stefan van der Walt <stefan@sun.ac.za> | 2008-04-05 22:28:10 +0000 |
---|---|---|
committer | Stefan van der Walt <stefan@sun.ac.za> | 2008-04-05 22:28:10 +0000 |
commit | 481c25db0deba1a0405f1b8ea4df2172eae48ed5 (patch) | |
tree | 339de18396f050fd0704b3c90ddeaf3e82f617b1 /numpy | |
parent | af8556593f4a4ce5e79926463a2c00bd9bd298b7 (diff) | |
download | numpy-481c25db0deba1a0405f1b8ea4df2172eae48ed5.tar.gz |
Test effect of newaxis indexing on array scalar.
Diffstat (limited to 'numpy')
-rw-r--r-- | numpy/core/tests/test_scalarmath.py | 1 |
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): |