diff options
author | Greg Noel <GregNoel@tigris.org> | 2010-03-25 04:14:28 (GMT) |
---|---|---|
committer | Greg Noel <GregNoel@tigris.org> | 2010-03-25 04:14:28 (GMT) |
commit | 22d352500f1cd6bd0c53d788a5dc44a1fefa676e (patch) | |
tree | 0984fd581082c27cfbfbb7f94d5751b0e6fd2741 /test/Configure | |
parent | 75ac32ac8e32076e25b72a19eb56340cc585fa4e (diff) | |
download | SCons-22d352500f1cd6bd0c53d788a5dc44a1fefa676e.zip SCons-22d352500f1cd6bd0c53d788a5dc44a1fefa676e.tar.gz SCons-22d352500f1cd6bd0c53d788a5dc44a1fefa676e.tar.bz2 |
Move 2.0 changes collected in branches/pending back to trunk for further
development. Note that this set of changes is NOT backward-compatible;
the trunk no longer works with Python 1.5.2, 2.0, or 2.1.
Diffstat (limited to 'test/Configure')
-rw-r--r-- | test/Configure/config-h.py | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/test/Configure/config-h.py b/test/Configure/config-h.py index 9276ec8..cda6c3b 100644 --- a/test/Configure/config-h.py +++ b/test/Configure/config-h.py @@ -30,14 +30,13 @@ Verify creation of a config.h file from a Configure context. import os import re -import string import TestSCons test = TestSCons.TestSCons(match = TestSCons.match_exact) lib = test.Configure_lib -LIB = "LIB" + string.upper(lib) +LIB = "LIB" + lib.upper() test.write('SConstruct', """\ env = Environment() @@ -85,7 +84,7 @@ scons: Configure: creating config.h expected_stdout = test.wrap_stdout(build_str=expected_build_str, read_str=expected_read_str) -expected_config_h = string.replace("""\ +expected_config_h = ("""\ #ifndef CONFIG_H_SEEN #define CONFIG_H_SEEN @@ -130,7 +129,7 @@ expected_config_h = string.replace("""\ /* #undef HAVE_LIBHOPEFULLYNOLIB2 */ #endif /* CONFIG_H_SEEN */ -""" % locals(), "\n", os.linesep) +""" % locals()).replace("\n", os.linesep) test.run(stdout=expected_stdout) @@ -157,7 +156,7 @@ expected_read_str = re.sub(r'\b((yes)|(no))\b', expected_build_str = "scons: `.' is up to date.\n" expected_stdout = test.wrap_stdout(build_str=expected_build_str, read_str=expected_read_str) -#expected_stdout = string.replace(expected_stdout, "\n", os.linesep) +#expected_stdout = expected_stdout.replace("\n", os.linesep) test.run(stdout=expected_stdout) |