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:3283–3286  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

3281
3282
3283def test_invalid_tensor_constructor_repr():
3284 # ARROW-2638: prevent calling extension class constructors directly
3285 with pytest.raises(TypeError):
3286 repr(pa.Tensor([1]))
3287
3288
3289def test_invalid_tensor_construction():

Callers

nothing calls this directly

Calls 1

TensorMethod · 0.80

Tested by

no test coverage detected