Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/apache/arrow
/ test_cast_none
Function
test_cast_none
python/pyarrow/tests/test_array.py:1758–1763 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
1756
1757
1758
def
test_cast_none():
1759
# ARROW-3735: Ensure that calling cast(None) doesn't segfault.
1760
arr = pa.array([1, 2, 3])
1761
1762
with
pytest.raises(TypeError):
1763
arr.cast(None)
1764
1765
1766
def
test_cast_list_to_primitive():
Callers
nothing calls this directly
Calls
2
array
Method · 0.45
cast
Method · 0.45
Tested by
no test coverage detected