()
| 351 | a[None, 0, 0] |
| 352 | |
| 353 | def test_disallow_mask_with_newaxis(): |
| 354 | a = ones((3, 3, 3)) |
| 355 | with pytest.raises(IndexError): |
| 356 | a[None, asarray(True)] |
| 357 | |
| 358 | @pytest.mark.parametrize("shape", [(), (5,), (3, 3, 3)]) |
| 359 | @pytest.mark.parametrize("index", ["string", False, True]) |