Revision: 2947
Author: janne.t.harkonen
Date: Tue Apr 13 02:41:02 2010
Log: fix tracelog message
http://code.google.com/p/robotframework/source/detail?r=2947

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

=======================================
--- /trunk/src/robot/running/arguments.py       Tue Apr 13 01:01:19 2010
+++ /trunk/src/robot/running/arguments.py       Tue Apr 13 02:41:02 2010
@@ -205,7 +205,7 @@
         self._check_missing_args(template, len(arguments))
         self.check_arg_limits(template)
         self._set_variables(variables, template)
-        return template, named
+        return positional, named

     def _check_missing_args(self, template, arg_count):
         for a in template:
@@ -230,7 +230,9 @@
         varargs = positional[len(self.names):]
         positional = positional[:len(self.names)]
         for name, value in named.items():
- template[self.names.index(name)] = variables.replace_scalar(value)
+            replaced = variables.replace_scalar(value)
+            template[self.names.index(name)] = replaced
+            named[name] = replaced
         for index, value in enumerate(positional):
             template[index] = value
         return template + varargs, positional, named

Reply via email to