MCPcopy Create free account
hub / github.com/dask/dask / test_slice_optimizations

Function test_slice_optimizations

dask/array/tests/test_slicing.py:269–281  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

267
268
269def test_slice_optimizations():
270 # bar[:]
271 with pytest.raises(SlicingNoop):
272 slice_array("foo", "bar", [[100]], (slice(None, None, None),))
273
274 # bar[:,:,:]
275 with pytest.raises(SlicingNoop):
276 slice_array(
277 "foo",
278 "bar",
279 [(100, 1000, 10000)],
280 (slice(None, None, None), slice(None, None, None), slice(None, None, None)),
281 )
282
283
284def test_slicing_with_singleton_indices():

Callers

nothing calls this directly

Calls 1

slice_arrayFunction · 0.90

Tested by

no test coverage detected