()
| 138 | |
| 139 | |
| 140 | def test_invalid_scalar(): |
| 141 | s = pc.cast(pa.scalar(b"\xff"), pa.string(), safe=False) |
| 142 | s.validate() |
| 143 | with pytest.raises(ValueError, |
| 144 | match="string scalar contains invalid UTF8 data"): |
| 145 | s.validate(full=True) |
| 146 | |
| 147 | |
| 148 | def test_null_singleton(): |