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

Method test_basic

numpy/core/tests/test_indexing.py:1360–1367  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1358
1359 """
1360 def test_basic(self):
1361 a = np.arange(10)
1362
1363 assert_raises(IndexError, a.__getitem__, [0.5, 1.5])
1364 assert_raises(IndexError, a.__getitem__, (['1', '2'],))
1365
1366 # The following is valid
1367 a.__getitem__([])
1368
1369
1370class TestMultipleEllipsisError:

Callers

nothing calls this directly

Calls 2

assert_raisesFunction · 0.90
__getitem__Method · 0.45

Tested by

no test coverage detected