(self)
| 253 | # an object array that cannot be converted to bool always: |
| 254 | class NotBool(): |
| 255 | def __bool__(self): |
| 256 | raise ValueError("not a bool!") |
| 257 | masked_obj = np.ma.masked_array([NotBool(), 'b'], mask=[True, False]) |
| 258 | # Check that the NotBool actually fails like we would expect: |
| 259 | with pytest.raises(ValueError, match="not a bool!"): |
nothing calls this directly
no outgoing calls
no test coverage detected