MCPcopy Index your code
hub / github.com/pydata/xarray / test_robust_getitem

Function test_robust_getitem

xarray/tests/test_backends_common.py:29–38  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

27
28
29def test_robust_getitem() -> None:
30 array = DummyArray(failures=2)
31 with pytest.raises(DummyFailure):
32 array[...]
33 result = robust_getitem(array, ..., catch=DummyFailure, initial_delay=1)
34 assert result == "success"
35
36 array = DummyArray(failures=3)
37 with pytest.raises(DummyFailure):
38 robust_getitem(array, ..., catch=DummyFailure, initial_delay=1, max_retries=2)
39
40
41@pytest.mark.parametrize(

Callers

nothing calls this directly

Calls 2

robust_getitemFunction · 0.90
DummyArrayClass · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…