extracttests.py: renamed 'str' to 'string'
This commit is contained in:
parent
0c54f88dd0
commit
54eeb76a71
|
@ -15,7 +15,7 @@ class Extract:
|
||||||
"""parse test file and add info to the nodes variable"""
|
"""parse test file and add info to the nodes variable"""
|
||||||
|
|
||||||
name = '[0-9a-zA-Z_]+'
|
name = '[0-9a-zA-Z_]+'
|
||||||
str = '\\"(.+)\\"'
|
string = '\\"(.+)\\"'
|
||||||
|
|
||||||
testclass = None
|
testclass = None
|
||||||
functionName = None
|
functionName = None
|
||||||
|
@ -43,12 +43,12 @@ class Extract:
|
||||||
continue
|
continue
|
||||||
|
|
||||||
# check
|
# check
|
||||||
res = re.match('\s+check\('+str, line)
|
res = re.match('\s+check\('+string, line)
|
||||||
if res != None:
|
if res != None:
|
||||||
code = res.group(1)
|
code = res.group(1)
|
||||||
|
|
||||||
# code..
|
# code..
|
||||||
res = re.match('\\s+'+str, line)
|
res = re.match('\\s+'+string, line)
|
||||||
if res != None:
|
if res != None:
|
||||||
code = code + res.group(1)
|
code = code + res.group(1)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue