()
| 27 | |
| 28 | |
| 29 | def 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( |
nothing calls this directly
no test coverage detected
searching dependent graphs…