1. SCons
  2. Core
  3. SCons

Source

SCons / test / BadBuilder.py

Diff from to

File test/BadBuilder.py

  • Ignore whitespace
 built
 """)
 
+python_file_line = test.python_file_line(SConstruct_path, 14)
+
 ### Gross mistake in Builder spec
 
 test.write(SConstruct_path, sconstruct % '\
 expect_stderr = """\
 
 scons: *** Builder b2 must have an action to build ['foo.c'].
-File "%(SConstruct_path)s", line 14, in ?
-""" % locals()
+""" + python_file_line
 
 test.run(arguments='.', stderr=expect_stderr, status = 2)
 
 expect_stderr="""\
 
 scons: *** Builder b2 must have an action to build ['foo.c'].
-File "%(SConstruct_path)s", line 14, in ?
-""" % locals()
+""" + python_file_line
 
 test.run(arguments='test2', stderr=expect_stderr, status=2)
 
 expect_stderr = """\
 
 scons: *** Builder b2 must have an action to build ['foo.c'].
-File "%(SConstruct_path)s", line 14, in ?
-""" % locals()
+""" + python_file_line
 
 test.run(arguments='test2', stderr=expect_stderr, status = 2)