summaryrefslogtreecommitdiffstats
path: root/test/errors.py
diff options
context:
space:
mode:
authorSteven Knight <knight@baldmt.com>2004-10-09 23:33:05 (GMT)
committerSteven Knight <knight@baldmt.com>2004-10-09 23:33:05 (GMT)
commite4d06a5733389c23c48ae9be17f2bc2add708d5b (patch)
tree5bac1a5470023aae7f748df758227fece14c6a48 /test/errors.py
parenta538b7dded2a3d4ff54fdc9598bb8c9578c7d7d5 (diff)
downloadSCons-e4d06a5733389c23c48ae9be17f2bc2add708d5b.zip
SCons-e4d06a5733389c23c48ae9be17f2bc2add708d5b.tar.gz
SCons-e4d06a5733389c23c48ae9be17f2bc2add708d5b.tar.bz2
Performance optimization: use re.sub() for variable expansion. (Han-Wen Nienhyus)
Diffstat (limited to 'test/errors.py')
-rw-r--r--test/errors.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/errors.py b/test/errors.py
index 7e24fed..1652f88 100644
--- a/test/errors.py
+++ b/test/errors.py
@@ -190,7 +190,7 @@ env.subst('$foo.bar.3.0')
test.run(status=2, stderr="""
scons: \*\*\* Syntax error `invalid syntax( \(line 1\))?' trying to evaluate `\$foo\.bar\.3\.0'
-File "SConstruct", line 2, in \?
+File "[^"]+", line \d+, in \S+
""")
test.write('SConstruct', """\
@@ -200,7 +200,7 @@ env.subst_list('$foo.3.0.x')
test.run(status=2, stderr="""
scons: \*\*\* Syntax error `invalid syntax( \(line 1\))?' trying to evaluate `\$foo\.3\.0\.x'
-File "SConstruct", line 2, in \?
+File "[^"]+", line \d+, in \S+
""")
#Test syntax errors when trying to expand construction variables at build time: