diff options
author | Steven Knight <knight@baldmt.com> | 2004-10-27 11:36:40 (GMT) |
---|---|---|
committer | Steven Knight <knight@baldmt.com> | 2004-10-27 11:36:40 (GMT) |
commit | d4e57deb7edf480a8c95542d4dd2afe4e756a137 (patch) | |
tree | dd5ca9d95dda271ba13b853f7abc2d82ccaacea8 /etc | |
parent | dd9a6d52a84c445b7516fc80b72f2baa3bc8b937 (diff) | |
download | SCons-d4e57deb7edf480a8c95542d4dd2afe4e756a137.zip SCons-d4e57deb7edf480a8c95542d4dd2afe4e756a137.tar.gz SCons-d4e57deb7edf480a8c95542d4dd2afe4e756a137.tar.bz2 |
Better test handling of File lines in stack traces. (Chad Austin)
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. |