summaryrefslogtreecommitdiffstats
path: root/test/bad-variables.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/bad-variables.py')
-rw-r--r--test/bad-variables.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/test/bad-variables.py b/test/bad-variables.py
index cb6b357..0618c5e 100644
--- a/test/bad-variables.py
+++ b/test/bad-variables.py
@@ -43,8 +43,7 @@ env['foo-bar'] = 1
expect_stderr = """
scons: *** Illegal construction variable `foo-bar'
-File "%(SConstruct_path)s", line 2, in ?
-""" % locals()
+""" + test.python_file_line(SConstruct_path, 2)
test.run(arguments='.', status=2, stderr=expect_stderr)
@@ -59,10 +58,10 @@ env = Environment()
env['foo(bar)'] = 1
""")
+
expect_stderr = """
scons: *** Illegal construction variable `foo(bar)'
-File "%(SConscript_path)s", line 2, in ?
-""" % locals()
+""" + test.python_file_line(SConscript_path, 2)
test.run(arguments='.', status=2, stderr=expect_stderr)