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

Function test_invalid_scalar

python/pyarrow/tests/test_scalars.py:140–145  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

138
139
140def 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
148def test_null_singleton():

Callers

nothing calls this directly

Calls 4

castMethod · 0.45
scalarMethod · 0.45
stringMethod · 0.45
validateMethod · 0.45

Tested by

no test coverage detected