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

Method test_overflow

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

Source from the content-addressed store, hash-verified

1302 np.array([0, 2**64, 0])]
1303 )
1304 def test_overflow(self, arr):
1305 slc = np.s_[1:2]
1306 res = trim_zeros(arr)
1307 assert_array_equal(res, arr[slc])
1308
1309 def test_no_trim(self):
1310 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