Revision: 2512
Author: pekka.klarck
Date: Tue Feb 23 04:15:13 2010
Log: fail immediately if timeout already expired
http://code.google.com/p/robotframework/source/detail?r=2512

Modified:
 /trunk/src/robot/running/timeouts.py

=======================================
--- /trunk/src/robot/running/timeouts.py        Sun Apr 19 13:26:54 2009
+++ /trunk/src/robot/running/timeouts.py        Tue Feb 23 04:15:13 2010
@@ -74,6 +74,8 @@
         if not self.active():
             raise FrameworkError('Timeout is not active')
         timeout = self.time_left()
+        if timeout <= 0:
+            raise TimeoutError(self.get_message())
         if logger is not None:
             logger.debug('%s timeout %s active. %s seconds left.'
% (self.type.capitalize(), self.string, round(timeout, 3)))

Reply via email to