()
| 333 | |
| 334 | |
| 335 | def 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 |
nothing calls this directly
no test coverage detected
searching dependent graphs…