Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/dask/dask
/ test_chunks_is_immutable
Function
test_chunks_is_immutable
dask/array/tests/test_array_core.py:3332–3338 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
3330
3331
3332
def
test_chunks_is_immutable():
3333
x = da.ones(6, chunks=3)
3334
try
:
3335
x.chunks = 2
3336
assert False
3337
except
TypeError
as
e:
3338
assert
"rechunk(2)"
in str(e)
3339
3340
3341
def
test_raise_on_bad_kwargs():
Callers
nothing calls this directly
Calls
1
ones
Method · 0.45
Tested by
no test coverage detected