diff options
author | Greg Noel <GregNoel@tigris.org> | 2010-05-21 06:06:27 (GMT) |
---|---|---|
committer | Greg Noel <GregNoel@tigris.org> | 2010-05-21 06:06:27 (GMT) |
commit | 935e698566833e2c50898f39f565414404c68cbd (patch) | |
tree | 140962ae0b8ebef170e83e21092fec4f510e91d4 /test/Deprecated/TargetSignatures/build-content.py | |
parent | b040d94fad9024d5715d22cdc071384e827696b2 (diff) | |
download | SCons-935e698566833e2c50898f39f565414404c68cbd.zip SCons-935e698566833e2c50898f39f565414404c68cbd.tar.gz SCons-935e698566833e2c50898f39f565414404c68cbd.tar.bz2 |
Update deprecated features to the next life-cycle stage
Diffstat (limited to 'test/Deprecated/TargetSignatures/build-content.py')
-rw-r--r-- | test/Deprecated/TargetSignatures/build-content.py | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/test/Deprecated/TargetSignatures/build-content.py b/test/Deprecated/TargetSignatures/build-content.py index 7cf8ab8..6213ef6 100644 --- a/test/Deprecated/TargetSignatures/build-content.py +++ b/test/Deprecated/TargetSignatures/build-content.py @@ -36,10 +36,14 @@ import TestSCons test = TestSCons.TestSCons(match = TestSCons.match_re_dotall) +expect = TestSCons.re_escape(""" +scons: warning: The env.TargetSignatures() method is deprecated; +\tconvert your build to use the env.Decider() method instead. +""") + TestSCons.file_expr + TestSCons.deprecated_python_expr sconstruct_contents = """\ -SetOption('warn', 'no-deprecated-target-signatures') +SetOption('warn', 'deprecated-target-signatures') env = Environment() def copy1(env, source, target): @@ -81,7 +85,7 @@ copy1(["bar.out"], ["bar.mid"]) copy2(["foo.mid"], ["foo.in"]) copy1(["foo.out"], ["foo.mid"]) """)), - stderr = TestSCons.deprecated_python_expr) + stderr = expect) test.up_to_date(arguments='bar.out foo.out', stderr=None) @@ -99,7 +103,7 @@ copy1(["bar.out"], ["bar.mid"]) copy2(["foo.mid"], ["foo.in"]) scons: `foo.out' is up to date. """)), - stderr = TestSCons.deprecated_python_expr) + stderr = expect) @@ -124,7 +128,7 @@ scons: `bar.out' is up to date. copy2(["foo.mid"], ["foo.in"]) copy1(["foo.out"], ["foo.mid"]) """)), - stderr = TestSCons.deprecated_python_expr) + stderr = expect) |