to control how the Install() and InstallAs() Builders install files.
The default INSTALL function now copies, not links, files.
+ - Remove deprecated features: the "name" argument to Builder objects,
+ and the Environment.Update() method.
+
RELEASE 0.11 - Tue, 11 Feb 2003 05:24:33 -0600
assert target.name == uni('n16 n17')
assert target.sources[0].name == uni('n18 n19')
- def test_noname(self):
- """Test deprecated warning for Builder name.
-
- Using the name argument for Builder() is deprectaed and the
- user should receive a warning.
- """
- SCons.Warnings.enableWarningClass(SCons.Warnings.DeprecatedWarning)
- SCons.Warnings.warningAsException(1)
-
- try:
- try:
- b = SCons.Builder.Builder(name='foo')
- except SCons.Warnings.DeprecatedWarning:
- pass
- else:
- assert 0
- finally:
- SCons.Warnings.suppressWarningClass(SCons.Warnings.DeprecatedWarning)
- SCons.Warnings.warningAsException(0)
-
def test_action(self):
"""Test Builder creation
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):