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

Function test_invalid_tensor_constructor_repr

python/pyarrow/tests/test_array.py:3032–3035  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

3030
3031
3032def test_invalid_tensor_constructor_repr():
3033 # ARROW-2638: prevent calling extension class constructors directly
3034 with pytest.raises(TypeError):
3035 repr(pa.Tensor([1]))
3036
3037
3038def test_invalid_tensor_construction():

Callers

nothing calls this directly

Calls 1

TensorMethod · 0.80

Tested by

no test coverage detected