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/Copy-Method.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/Copy-Method.py')
-rw-r--r-- | test/Deprecated/Copy-Method.py | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/test/Deprecated/Copy-Method.py b/test/Deprecated/Copy-Method.py index 3864b16..6909666 100644 --- a/test/Deprecated/Copy-Method.py +++ b/test/Deprecated/Copy-Method.py @@ -38,16 +38,8 @@ env = Environment().Copy() env.Copy() """) -expect = """ -scons: warning: The env.Copy() method is deprecated; use the env.Clone() method instead. -""" - -test.run(arguments = '.', - stderr = TestSCons.re_escape(expect) + TestSCons.file_expr) - -test.run(arguments = '--warn=no-deprecated .') - -test.run(arguments = '--warn=no-deprecated-copy .') +msg = """The env.Copy() method is deprecated; use the env.Clone() method instead.""" +test.deprecated_warning('deprecated-copy', msg) test.pass_test() |