extracttests.py: renamed 'str' to 'string'

This commit is contained in:
Daniel Marjamäki 2011-11-27 11:40:23 +01:00
parent 0c54f88dd0
commit 54eeb76a71
1 changed files with 3 additions and 3 deletions

View File

@ -15,7 +15,7 @@ class Extract:
"""parse test file and add info to the nodes variable"""
name = '[0-9a-zA-Z_]+'
str = '\\"(.+)\\"'
string = '\\"(.+)\\"'
testclass = None
functionName = None
@ -43,12 +43,12 @@ class Extract:
continue
# check
res = re.match('\s+check\('+str, line)
res = re.match('\s+check\('+string, line)
if res != None:
code = res.group(1)
# code..
res = re.match('\\s+'+str, line)
res = re.match('\\s+'+string, line)
if res != None:
code = code + res.group(1)