diff options
author | Steven Knight <knight@baldmt.com> | 2004-09-21 18:49:05 (GMT) |
---|---|---|
committer | Steven Knight <knight@baldmt.com> | 2004-09-21 18:49:05 (GMT) |
commit | 7700eb55bbf0da1e084ea4bd29212a8560376f55 (patch) | |
tree | 7410c59ea70fcab691b327a9837da11fee8c8fab /src/engine/SCons/ExecutorTests.py | |
parent | 50c6d9c6698a79ec2c0299c61b6ffdd2b27e921b (diff) | |
download | SCons-7700eb55bbf0da1e084ea4bd29212a8560376f55.zip SCons-7700eb55bbf0da1e084ea4bd29212a8560376f55.tar.gz SCons-7700eb55bbf0da1e084ea4bd29212a8560376f55.tar.bz2 |
Better error messages for bad builder creation. (Kevin Quick)
Diffstat (limited to 'src/engine/SCons/ExecutorTests.py')
-rw-r--r-- | src/engine/SCons/ExecutorTests.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/engine/SCons/ExecutorTests.py b/src/engine/SCons/ExecutorTests.py index c391543..cfa2dcd 100644 --- a/src/engine/SCons/ExecutorTests.py +++ b/src/engine/SCons/ExecutorTests.py @@ -81,6 +81,12 @@ class ExecutorTestCase(unittest.TestCase): assert x.targets == 't', x.targets source_list.append('s3') assert x.sources == ['s1', 's2'], x.sources + try: + x = SCons.Executor.Executor(None, 'e', ['o'], 't', source_list) + except SCons.Errors.UserError: + pass + else: + raise "Did not catch expected UserError" def test_get_build_env(self): """Test fetching and generating a build environment""" |