Skip to content

Commit

Permalink
fix Python3.3 syntax error
Browse files Browse the repository at this point in the history
  • Loading branch information
rhuanjl committed Apr 16, 2024
1 parent 807e85b commit f0ea258
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/runtests.py
Original file line number Diff line number Diff line change
Expand Up @@ -316,11 +316,11 @@ def __init__(self, name, compile_flags=[], variant_not_tags=[]):

@staticmethod
def _has_expansion(flags):
return any(re.match('.*\${.*}', f) for f in flags)
return any(re.match(r'.*\${.*}', f) for f in flags)

@staticmethod
def _expand(flag, test):
return re.sub('\${id}', str(test.id), flag)
return re.sub(r'\${id}', str(test.id), flag)

def _expand_compile_flags(self, test):
if self._compile_flags_has_expansion:
Expand Down

0 comments on commit f0ea258

Please sign in to comment.