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

Class T

numpy/_core/tests/test_nditer.py:3268–3270  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3266 # followup: this tests for a bug introduced in the first pass of gh-18450,
3267 # caused by an incorrect fallthrough of the TypeError
3268 class T:
3269 def __bool__(self):
3270 raise TypeError("Ambiguous")
3271 assert_raises(TypeError, np.logical_or.reduce,
3272 np.array([T(), T()], dtype='O'))
3273

Callers 2

test_object_iter_cleanupFunction · 0.70
test_unsigned_maxMethod · 0.70

Calls

no outgoing calls

Tested by 2

test_object_iter_cleanupFunction · 0.56
test_unsigned_maxMethod · 0.56