diff options
Diffstat (limited to 'etc')
-rw-r--r-- | etc/TestSCons.py | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/etc/TestSCons.py b/etc/TestSCons.py index 64bb90d..28f882b 100644 --- a/etc/TestSCons.py +++ b/etc/TestSCons.py @@ -85,6 +85,18 @@ else: fortran_lib = gccFortranLibs() + +file_expr = r"""File "[^"]*", line \d+, in .+ +""" + +# re.escape escapes too much. +def re_escape(str): + for c in ['.', '[', ']', '(', ')', '*', '+', '?']: # Not an exhaustive list. + str = string.replace(str, c, '\\' + c) + return str + + + class TestSCons(TestCommon): """Class for testing SCons. |