summaryrefslogtreecommitdiffstats
path: root/test/errors.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/errors.py')
-rw-r--r--test/errors.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/errors.py b/test/errors.py
index fb042bb..0f83e64 100644
--- a/test/errors.py
+++ b/test/errors.py
@@ -42,8 +42,8 @@ def foo(env, target, source):
def exit(env, target, source):
raise 'exit'
-env = Environment(BUILDERS = [Builder(name='foo', action=foo),
- Builder(name='exit', action=exit)])
+env = Environment(BUILDERS = { 'foo' : Builder(action=foo),
+ 'exit' : Builder(action=exit) })
env.foo('foo.out', 'foo.in')
env.exit('exit.out', 'exit.in')