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

Function test_mixed_sequence_errors

python/pyarrow/tests/test_convert_builtin.py:614–622  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

612
613
614def test_mixed_sequence_errors():
615 with pytest.raises(ValueError, match="tried to convert to boolean"):
616 pa.array([True, 'foo'], type=pa.bool_())
617
618 with pytest.raises(ValueError, match="tried to convert to float32"):
619 pa.array([1.5, 'foo'], type=pa.float32())
620
621 with pytest.raises(ValueError, match="tried to convert to double"):
622 pa.array([1.5, 'foo'])
623
624
625@pytest.mark.numpy

Callers

nothing calls this directly

Calls 1

arrayMethod · 0.45

Tested by

no test coverage detected