diff options
author | Steven Knight <knight@baldmt.com> | 2003-02-12 13:05:31 (GMT) |
---|---|---|
committer | Steven Knight <knight@baldmt.com> | 2003-02-12 13:05:31 (GMT) |
commit | bdbeeed7d1492c270c24d809237eb5f724c7cbf5 (patch) | |
tree | 61a0120a0f03c1e875ad2ebc40af99229d793c62 /test | |
parent | 5bbe45c7286f8e9e6d0139e611e0763681c2dd45 (diff) | |
download | SCons-bdbeeed7d1492c270c24d809237eb5f724c7cbf5.zip SCons-bdbeeed7d1492c270c24d809237eb5f724c7cbf5.tar.gz SCons-bdbeeed7d1492c270c24d809237eb5f724c7cbf5.tar.bz2 |
Remove deprecated features.
Diffstat (limited to 'test')
-rw-r--r-- | test/option--warn.py | 36 |
1 files changed, 19 insertions, 17 deletions
diff --git a/test/option--warn.py b/test/option--warn.py index d69b6e9..aa970fe 100644 --- a/test/option--warn.py +++ b/test/option--warn.py @@ -32,23 +32,25 @@ import TestCmd test = TestSCons.TestSCons(match = TestCmd.match_re_dotall) -test.write("SConstruct",""" -b=Builder(name='b', action='foo') -""") - -test.run(arguments='.', stderr=r""" -scons: warning: The use of the 'name' parameter to Builder\(\) is deprecated\. -File "SConstruct", line 2, in \? -""") - -test.run(arguments='--warn=no-deprecated .', stderr='') - -test.run(arguments='--warn=no-all .', stderr='') - -test.run(arguments='--warn=no-all --warn=deprecated .', stderr=r""" -scons: warning: The use of the 'name' parameter to Builder\(\) is deprecated\. -File "SConstruct", line 2, in \? -""") +# How to warn about deprecated features (whenever we have one again). +# +#test.write("SConstruct",""" +#b=Builder(name='b', action='foo') +#""") +# +#test.run(arguments='.', stderr=r""" +#scons: warning: The use of the 'name' parameter to Builder\(\) is deprecated\. +#File "SConstruct", line 2, in \? +#""") +# +#test.run(arguments='--warn=no-deprecated .', stderr='') +# +#test.run(arguments='--warn=no-all .', stderr='') +# +#test.run(arguments='--warn=no-all --warn=deprecated .', stderr=r""" +#scons: warning: The use of the 'name' parameter to Builder\(\) is deprecated\. +#File "SConstruct", line 2, in \? +#""") test.write("SConstruct",""" def build(target, source, env): |