()
| 612 | |
| 613 | |
| 614 | def 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 |