1. SCons
  2. Core
  3. SCons

Source

SCons / test / nonexistent.py

Diff from to

File test/nonexistent.py

  • Ignore whitespace
 __revision__ = "__FILE__ __REVISION__ __DATE__ __DEVELOPER__"
 
 import os.path
+import re
+
 import TestSCons
 
 test = TestSCons.TestSCons()
          match=TestSCons.match_re_dotall)
 
 test.run(arguments = '-k foo/bar foo',
-         stderr = "scons: \\*\\*\\* Do not know how to make File target `%s' \\(.*foo.bar\\).\n" % foo_bar,
+         stderr = "scons: \\*\\*\\* Do not know how to make File target `%s' \\(.*foo.bar\\).\n" % re.escape(foo_bar),
          status = 2,
          match=TestSCons.match_re_dotall)