summaryrefslogtreecommitdiffstats
path: root/test/builderrors.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/builderrors.py')
-rw-r--r--test/builderrors.py18
1 files changed, 9 insertions, 9 deletions
diff --git a/test/builderrors.py b/test/builderrors.py
index 8a574db..286b115 100644
--- a/test/builderrors.py
+++ b/test/builderrors.py
@@ -46,9 +46,9 @@ sys.exit(exitval)
""")
test.write(['one', 'SConstruct'], """
-B0 = Builder(name = 'B0', action = r'%s ../build.py 0 $TARGET $SOURCES')
-B1 = Builder(name = 'B1', action = r'%s ../build.py 1 $TARGET $SOURCES')
-env = Environment(BUILDERS = [B0, B1])
+B0 = Builder(action = r'%s ../build.py 0 $TARGET $SOURCES')
+B1 = Builder(action = r'%s ../build.py 1 $TARGET $SOURCES')
+env = Environment(BUILDERS = { 'B0' : B0, 'B1' : B1 })
env.B1(target = 'f1.out', source = 'f1.in')
env.B0(target = 'f2.out', source = 'f2.in')
env.B0(target = 'f3.out', source = 'f3.in')
@@ -66,9 +66,9 @@ test.fail_test(os.path.exists(test.workpath('f2.out')))
test.fail_test(os.path.exists(test.workpath('f3.out')))
test.write(['two', 'SConstruct'], """
-B0 = Builder(name = 'B0', action = r'%s ../build.py 0 $TARGET $SOURCES')
-B1 = Builder(name = 'B1', action = r'%s ../build.py 1 $TARGET $SOURCES')
-env = Environment(BUILDERS = [B0, B1])
+B0 = Builder(action = r'%s ../build.py 0 $TARGET $SOURCES')
+B1 = Builder(action = r'%s ../build.py 1 $TARGET $SOURCES')
+env = Environment(BUILDERS = { 'B0': B0, 'B1' : B1 })
env.B0(target = 'f1.out', source = 'f1.in')
env.B1(target = 'f2.out', source = 'f2.in')
env.B0(target = 'f3.out', source = 'f3.in')
@@ -86,9 +86,9 @@ test.fail_test(os.path.exists(test.workpath('f2.out')))
test.fail_test(os.path.exists(test.workpath('f3.out')))
test.write(['three', 'SConstruct'], """
-B0 = Builder(name = 'B0', action = r'%s ../build.py 0 $TARGET $SOURCES')
-B1 = Builder(name = 'B1', action = r'%s ../build.py 1 $TARGET $SOURCES')
-env = Environment(BUILDERS = [B0, B1])
+B0 = Builder(action = r'%s ../build.py 0 $TARGET $SOURCES')
+B1 = Builder(action = r'%s ../build.py 1 $TARGET $SOURCES')
+env = Environment(BUILDERS = { 'B0' : B0, 'B1': B1 })
env.B0(target = 'f1.out', source = 'f1.in')
env.B0(target = 'f2.out', source = 'f2.in')
env.B1(target = 'f3.out', source = 'f3.in')