MCPcopy Create free account
hub / github.com/apache/arrow / test_expression_boolean_operators

Function test_expression_boolean_operators

python/pyarrow/tests/test_compute.py:4268–4283  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

4266
4267
4268def 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
4286def test_expression_call_function():

Callers

nothing calls this directly

Calls 1

scalarMethod · 0.45

Tested by

no test coverage detected