summaryrefslogtreecommitdiff
path: root/test/BuildDir/errors.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/BuildDir/errors.py')
-rw-r--r--test/BuildDir/errors.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/test/BuildDir/errors.py b/test/BuildDir/errors.py
index 4fcd6257..44096a1c 100644
--- a/test/BuildDir/errors.py
+++ b/test/BuildDir/errors.py
@@ -165,8 +165,7 @@ BuildDir('build', 'src2')
expect_stderr = """
scons: *** 'build' already has a source directory: 'src1'.
-File "%(duplicate_SConstruct_path)s", line 2, in ?
-""" % locals()
+""" + test.python_file_line(duplicate_SConstruct_path, 2)
test.run(chdir = 'duplicate',
arguments = ".",