Revision: 2847
Author: KariHusa
Date: Wed Apr  7 02:47:03 2010
Log: Use resolved kwargs also with handlers inside timeouts
http://code.google.com/p/robotframework/source/detail?r=2847

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

=======================================
--- /trunk/src/robot/running/handlers.py        Wed Apr  7 02:16:21 2010
+++ /trunk/src/robot/running/handlers.py        Wed Apr  7 02:47:03 2010
@@ -129,10 +129,10 @@

     def _run_handler(self, handler, args, output, timeout):
         arg_resolver = LibraryKeywordArgTypeResolver(self.args, args)
-        posargs = arg_resolver.posargs
+        posargs, kwargs = arg_resolver.posargs, arg_resolver.kwargs
         if timeout is not None and timeout.active():
-            return timeout.run(handler, args=posargs, logger=output)
-        return handler(*posargs, **arg_resolver.kwargs)
+ return timeout.run(handler, args=posargs, kwargs=kwargs, logger=output)
+        return handler(*posargs, **kwargs)

     def _get_timeout(self, namespace):
         # Timeouts must not be active for run keyword variants, only for


--
To unsubscribe, reply using "remove me" as the subject.

Reply via email to