Status: New
Owner: ----
Labels: Type-Defect

New issue 1505 by [email protected]: Class in variable file variable crashes pybot
http://code.google.com/p/robotframework/issues/detail?id=1505

Variable file (var_file.py):
class Foo(object):
    a = "foo"

MY_VAR = Foo

Test case file (var_file.txt):
*** Test cases ***
log variables
    log    ${MY VAR}

Run command:
pybot -V var_file.py var_file.txt

Log output:
==============================================================================
Var File
==============================================================================
log variables | FAIL |
TypeError: argument of type 'Foo' is not iterable
------------------------------------------------------------------------------
Var File | FAIL |
1 critical test, 0 passed, 1 failed
1 test total, 0 passed, 1 failed
==============================================================================
Output: /Users/ilmarikontulainen/Documents/Projects/robot_sandbox/output.xml [ ERROR ] Reading XML source '/Users/ilmarikontulainen/Documents/Projects/robot_sandbox/output.xml' failed: ParseError: mismatched tag: line 12, column 2

--
You received this message because this project is configured to send all issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings

--

--- You received this message because you are subscribed to the Google Groups "robotframework-commit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to