Author: pekka.klarck
Date: Wed Apr  8 15:10:18 2009
New Revision: 1759

Modified:
   trunk/src/robot/libraries/BuiltIn.py

Log:
made it possible to set test/suite/global variables with an empty list variable as value (issue 280)

Modified: trunk/src/robot/libraries/BuiltIn.py
==============================================================================
--- trunk/src/robot/libraries/BuiltIn.py        (original)
+++ trunk/src/robot/libraries/BuiltIn.py        Wed Apr  8 15:10:18 2009
@@ -716,9 +716,9 @@

     def _get_var_value(self, name, values):
         variables = self._get_variables()
-        values = variables.replace_list(values)
         if not values:
             return variables[name]
+        values = variables.replace_list(values)
         if len(values) == 1 and name[0] == '$':
             return values[0]
         return list(values)

Reply via email to