

def test_retry_call_2():
    side_effect = [RuntimeError, RuntimeError, 3]
    f_mock = MagicMock(side_effect=side_effect)
    tries = 5
    result = None
    try:
        result = retry_call(f_mock, exceptions=RuntimeError, tries=tries)
    except RuntimeError:
        pass
    assert (result == 3)
    assert (side_effect.call_count == len(side_effect))

dataset/ETHPy150Open invl/retry/retry/tests/test_retry.py test_retry_call_2/VarMisuse@73/95 `f_mock`->`side_effect`