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)
commit3b4f97ac581816f9fa2429e8d94e467027c19a7f (patch)
tree5bac1a5470023aae7f748df758227fece14c6a48 /test/errors.py
parent759d82c0b890501e19708536e47d83e00c6dae09 (diff)
downloadSCons-3b4f97ac581816f9fa2429e8d94e467027c19a7f.zip
SCons-3b4f97ac581816f9fa2429e8d94e467027c19a7f.tar.gz
SCons-3b4f97ac581816f9fa2429e8d94e467027c19a7f.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: