summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorSteven Knight <knight@baldmt.com>2004-10-27 11:36:40 (GMT)
committerSteven Knight <knight@baldmt.com>2004-10-27 11:36:40 (GMT)
commitd4e57deb7edf480a8c95542d4dd2afe4e756a137 (patch)
treedd5ca9d95dda271ba13b853f7abc2d82ccaacea8 /etc
parentdd9a6d52a84c445b7516fc80b72f2baa3bc8b937 (diff)
downloadSCons-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.py12
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.