Revision: 3814
Author: pekka.klarck
Date: Thu Jul 15 02:36:44 2010
Log: Added variable resolving few days ago to java libs (issue 584) but it
seems that on some cases variables are None. The high level TestLibrary
factory method evan has variables=None on its signature so this simple fix
is probably enough. At least it seems to fix all the tests.
http://code.google.com/p/robotframework/source/detail?r=3814
Modified:
/trunk/src/robot/running/arguments.py
=======================================
--- /trunk/src/robot/running/arguments.py Tue Jul 13 07:01:13 2010
+++ /trunk/src/robot/running/arguments.py Thu Jul 15 02:36:44 2010
@@ -195,8 +195,9 @@
class JavaInitArguments(JavaKeywordArguments):
_type = 'Test Library'
- def resolve(self, args, variables):
- args = variables.replace_list(args)
+ def resolve(self, args, variables=None):
+ if variables:
+ args = variables.replace_list(args)
self.check_arg_limits(args)
return args, {}