summaryrefslogtreecommitdiffstats
path: root/src/engine/SCons/ExecutorTests.py
diff options
context:
space:
mode:
authorSteven Knight <knight@baldmt.com>2009-01-01 18:36:15 (GMT)
committerSteven Knight <knight@baldmt.com>2009-01-01 18:36:15 (GMT)
commita35f5af91bb55f3f522a92a0927a4567d8bbfafa (patch)
tree60c2f974c9d62f7a9916ca90f9cfb1f0d0c02c9c /src/engine/SCons/ExecutorTests.py
parent021ed8ef6e5d489aad7a11a707023fb8eb29f204 (diff)
downloadSCons-a35f5af91bb55f3f522a92a0927a4567d8bbfafa.zip
SCons-a35f5af91bb55f3f522a92a0927a4567d8bbfafa.tar.gz
SCons-a35f5af91bb55f3f522a92a0927a4567d8bbfafa.tar.bz2
Use a SCons.Util.UniqueList instance for the Executor.sources list
instead of maintaining its uniqueness by hand.
Diffstat (limited to 'src/engine/SCons/ExecutorTests.py')
-rw-r--r--src/engine/SCons/ExecutorTests.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/engine/SCons/ExecutorTests.py b/src/engine/SCons/ExecutorTests.py
index 12c80b4..0fd11af 100644
--- a/src/engine/SCons/ExecutorTests.py
+++ b/src/engine/SCons/ExecutorTests.py
@@ -160,12 +160,12 @@ class ExecutorTestCase(unittest.TestCase):
env = MyEnvironment(Y='yyy')
overrides = [{'O':'ob3'}, {'O':'oo3'}]
- x = SCons.Executor.Executor(MyAction(), env, overrides, 't', 's')
+ x = SCons.Executor.Executor(MyAction(), env, overrides, ['t'], ['s'])
be = x.get_build_env()
assert be['O'] == 'oo3', be['O']
assert be['Y'] == 'yyy', be['Y']
overrides = [{'O':'ob3'}]
- x = SCons.Executor.Executor(MyAction(), env, overrides, 't', 's')
+ x = SCons.Executor.Executor(MyAction(), env, overrides, ['t'], ['s'])
be = x.get_build_env()
assert be['O'] == 'ob3', be['O']
assert be['Y'] == 'yyy', be['Y']
@@ -270,9 +270,9 @@ class ExecutorTestCase(unittest.TestCase):
x = SCons.Executor.Executor('b', 'e', 'o', 't', ['s1', 's2'])
assert x.sources == ['s1', 's2'], x.sources
x.add_sources(['s1', 's2'])
- assert x.sources == ['s1', 's2', 's1', 's2'], x.sources
+ assert x.sources == ['s1', 's2'], x.sources
x.add_sources(['s3', 's1', 's4'])
- assert x.sources == ['s1', 's2', 's1', 's2', 's3', 's1', 's4'], x.sources
+ assert x.sources == ['s1', 's2', 's3', 's4'], x.sources
def test_get_sources(self):
"""Test getting sources from an Executor"""