| 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 |
no outgoing calls