def test_customized_message(self): tout = KeywordTimeout('1s', 'My message', VariableMock()) tout.start() tout.run(passing) tout.secs = 0.001 assert_raises_with_msg(TimeoutError, 'My message', tout.run, sleeping, (10,))
def test_customized_message(self): tout = KeywordTimeout('1s', 'My message', VariableMock()) tout.start() tout.run(passing) tout.secs = 0.001 assert_raises_with_msg(TimeoutError, 'My message', tout.run, sleeping, (10,))
def wrapper(*args, **kwargs): timeout_msg = func.__name__ + " timed out !!" timeout = KeywordTimeout(timeoutinseconds, timeout_msg, VariableScopes(RobotSettings())) timeout.start() return timeout.run(func, args, kwargs)