

def do_while(f_do, f_condition, timeout=None):

    def should_do():
        if (timeout and (timeout < 0)):
            raise Timeout
        return f_condition()
    original_timeout = timeout
    start = time()
    while should_do():
        f_do()
        if timeout:
            passed = (time() - start)
            timeout = (start - passed)

dataset/ETHPy150Open cenk/kuyruk/tests/integration/util.py do_while/VarMisuse@86/104 `original_timeout`->`start`