mirror of
https://github.com/httprunner/httprunner.git
synced 2026-05-13 08:59:44 +08:00
fix: variable scope error in Python 2.7
This commit is contained in:
@@ -724,7 +724,7 @@ def parse_variables_mapping(variables_mapping, ignore=False):
|
||||
# reference other variable, or function call with other variable
|
||||
# e.g. {"varA": "123$varB", "varB": "456$varC"}
|
||||
# e.g. {"varC": "${sum_two($a, $b)}"}
|
||||
if any([var_name not in parsed_variables_mapping for var_name in variables]):
|
||||
if any([_var_name not in parsed_variables_mapping for _var_name in variables]):
|
||||
# reference variable not parsed
|
||||
continue
|
||||
|
||||
|
||||
Reference in New Issue
Block a user