MCPcopy
hub / github.com/dask/dask / test_split_every_invalid

Function test_split_every_invalid

dask/tests/test_graph_manipulation.py:335–346  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

333
334
335def test_split_every_invalid():
336 t = Tuple({"a": 1, "b": 2}, ["a", "b"])
337 with pytest.raises(ValueError):
338 checkpoint(t, split_every=1)
339 with pytest.raises(ValueError):
340 checkpoint(t, split_every=1.9)
341 with pytest.raises(ValueError):
342 checkpoint(t, split_every=0) # Not to be confused with False or None
343 with pytest.raises(ValueError):
344 checkpoint(t, split_every=-2)
345 with pytest.raises(TypeError):
346 checkpoint(t, split_every={0: 2}) # This is legal for dask.array but not here

Callers

nothing calls this directly

Calls 2

TupleClass · 0.90
checkpointFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…