| 4266 | |
| 4267 | |
| 4268 | def test_expression_boolean_operators(): |
| 4269 | # https://issues.apache.org/jira/browse/ARROW-11412 |
| 4270 | true = pc.scalar(True) |
| 4271 | false = pc.scalar(False) |
| 4272 | |
| 4273 | with pytest.raises(ValueError, match="cannot be evaluated to python True"): |
| 4274 | true and false |
| 4275 | |
| 4276 | with pytest.raises(ValueError, match="cannot be evaluated to python True"): |
| 4277 | true or false |
| 4278 | |
| 4279 | with pytest.raises(ValueError, match="cannot be evaluated to python True"): |
| 4280 | bool(true) |
| 4281 | |
| 4282 | with pytest.raises(ValueError, match="cannot be evaluated to python True"): |
| 4283 | not true |
| 4284 | |
| 4285 | |
| 4286 | def test_expression_call_function(): |