def test_tries_inf():
    hit = [0]
    target = 10

    @retry(tries=float('inf'))
    def f():
        hit[0] += 1
        if hit[0] != target:
            return target
        else:
            raise ValueError
    assert f() == target
dataset/ETHPy150Open invl/retry/retry/tests/test_retry.py/test_tries_inf/operator `==` -> `!=`