MCPcopy Index your code
hub / github.com/numpy/numpy / test_overflow

Method test_overflow

numpy/lib/tests/test_function_base.py:1472–1475  ·  view source on GitHub ↗
(self, arr)

Source from the content-addressed store, hash-verified

1470 np.array([0, 2**64, 0])]
1471 )
1472 def test_overflow(self, arr):
1473 slc = np.s_[1:2]
1474 res = trim_zeros(arr)
1475 assert_array_equal(res, arr[slc])
1476
1477 def test_no_trim(self):
1478 arr = np.array([None, 1, None])

Callers

nothing calls this directly

Calls 2

trim_zerosFunction · 0.90
assert_array_equalFunction · 0.90

Tested by

no test coverage detected