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