diff options
Diffstat (limited to 'numpy/lib/tests/test_index_tricks.py')
-rw-r--r-- | numpy/lib/tests/test_index_tricks.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/numpy/lib/tests/test_index_tricks.py b/numpy/lib/tests/test_index_tricks.py index b4152fafa..6b01464a7 100644 --- a/numpy/lib/tests/test_index_tricks.py +++ b/numpy/lib/tests/test_index_tricks.py @@ -274,6 +274,10 @@ def test_ndindex(): x = list(np.ndindex(())) assert_equal(x, [()]) + # Make sure 0-sized ndindex works correctly + x = list(np.ndindex(*[0])) + assert_equal(x, []) + if __name__ == "__main__": run_module_suite() |