(shape, index)
| 358 | @pytest.mark.parametrize("shape", [(), (5,), (3, 3, 3)]) |
| 359 | @pytest.mark.parametrize("index", ["string", False, True]) |
| 360 | def test_error_on_invalid_index(shape, index): |
| 361 | a = ones(shape) |
| 362 | with pytest.raises(IndexError): |
| 363 | a[index] |
| 364 | |
| 365 | def test_mask_0d_array_without_errors(): |
| 366 | a = ones(()) |