MCPcopy Create free account
hub / github.com/numpy/numpy / test_disallow_mask_with_newaxis

Function test_disallow_mask_with_newaxis

numpy/array_api/tests/test_array_object.py:353–356  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

351 a[None, 0, 0]
352
353def 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])

Callers

nothing calls this directly

Calls 2

onesFunction · 0.50
asarrayFunction · 0.50

Tested by

no test coverage detected