Skip to content

Commit ac7abf1

Browse files
committed
cleaning up tool initialization to speed up tests
1 parent fac9097 commit ac7abf1

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

test/AddOption/basic.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
test = TestSCons.TestSCons()
3434

3535
test.write('SConstruct', """\
36-
DefaultEnvironment(tools=[])
36+
DefaultEnvironment(tools=[])
3737
env = Environment(tools=[])
3838
AddOption('--force',
3939
action="store_true",

test/AddOption/multi-arg.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@
3737
'SConstruct',
3838
"""\
3939
DefaultEnvironment(tools=[])
40-
env = Environment(tools=[])
4140
AddOption('--extras',
4241
nargs=2,
4342
dest='extras',
@@ -73,7 +72,6 @@
7372
'SConstruct',
7473
"""\
7574
DefaultEnvironment(tools=[])
76-
env = Environment(tools=[])
7775
AddOption(
7876
'--prefix',
7977
nargs=1,
@@ -103,7 +101,7 @@
103101
# one single-arg option
104102
test.run('-Q -q . --prefix=/home/foo', stdout="/home/foo\n()\n")
105103
# one two-arg option
106-
test.run('-Q -q . --extras A B', status=1, stdout="None\n('A', 'B')\n")
104+
test.run('-Q -q . --extras A B', status=2, stdout="None\n('A', 'B')\n")
107105
# single-arg option followed by two-arg option
108106
test.run(
109107
'-Q -q . --prefix=/home/foo --extras A B',

0 commit comments

Comments
 (0)