diff options
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() |