bugfix: make compatible with None field in testcase

This commit is contained in:
debugtalk
2017-07-14 15:41:44 +08:00
parent 658920f8b2
commit c87a2f52af

View File

@@ -165,7 +165,7 @@ class Context(object):
return data
# data is in string format here
data = data.strip()
data = "" if data is None else data.strip()
if utils.is_variable(data):
# variable marker: $var
variable_name = utils.parse_variable(data)