@@ -135,7 +135,7 @@ def liveTest():
135135 vars_ [child .tagName ] = randomStr (6 ) if var == "random" else var
136136
137137 for case in livetests .getElementsByTagName ("case" ):
138- console_output = False
138+ parse_from_console_output = False
139139 count += 1
140140 name = None
141141 parse = []
@@ -162,9 +162,9 @@ def liveTest():
162162 value = replaceVars (item .getAttribute ("value" ), vars_ )
163163
164164 if item .hasAttribute ("console_output" ):
165- console_output = bool (item .getAttribute ("console_output" ))
165+ parse_from_console_output = bool (item .getAttribute ("console_output" ))
166166
167- parse .append ((value , console_output ))
167+ parse .append ((value , parse_from_console_output ))
168168
169169 msg = "running live test case: %s (%d/%d)" % (name , count , length )
170170 logger .info (msg )
@@ -292,8 +292,8 @@ def runCase(switches=None, parse=None):
292292 with codecs .open (conf .dumper .getOutputFile (), "rb" , UNICODE_ENCODING ) as f :
293293 content = f .read ()
294294
295- for item , console_output in parse :
296- parse_on = console if console_output else content
295+ for item , parse_from_console_output in parse :
296+ parse_on = console if parse_from_console_output else content
297297
298298 if item .startswith ("r'" ) and item .endswith ("'" ):
299299 if not re .search (item [2 :- 1 ], parse_on , re .DOTALL ):
0 commit comments