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

Class T

numpy/core/tests/test_nditer.py:3017–3019  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3015 # followup: this tests for a bug introduced in the first pass of gh-18450,
3016 # caused by an incorrect fallthrough of the TypeError
3017 class T:
3018 def __bool__(self):
3019 raise TypeError("Ambiguous")
3020 assert_raises(TypeError, np.logical_or.reduce,
3021 np.array([T(), T()], dtype='O'))
3022

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