Skip to content

Commit 94e159d

Browse files
authored
Fix flake8 warnings in launch_yaml. (#756)
We don't need parentheses after assert. This fixes warnings when using the new flake8. Signed-off-by: Chris Lalancette <[email protected]>
1 parent 57f3d3b commit 94e159d

File tree

1 file changed

+11
-12
lines changed

1 file changed

+11
-12
lines changed

launch_yaml/test/launch_yaml/test_executable.py

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -46,23 +46,22 @@ def test_executable():
4646
ld = parser.parse_description(root_entity)
4747
executable = ld.entities[0]
4848
cmd = [i[0].perform(None) for i in executable.cmd]
49-
assert(
50-
cmd == ['ls', '-l', '-a', '-s'])
51-
assert(executable.cwd[0].perform(None) == '/')
52-
assert(executable.name[0].perform(None) == 'my_ls')
53-
assert(executable.shell is True)
54-
assert(executable.emulate_tty is True)
55-
assert(executable.output[0].perform(None) == 'log')
56-
assert(executable.sigkill_timeout[0].perform(None) == '4.0')
57-
assert(executable.sigterm_timeout[0].perform(None) == '7.0')
49+
assert cmd == ['ls', '-l', '-a', '-s']
50+
assert executable.cwd[0].perform(None) == '/'
51+
assert executable.name[0].perform(None) == 'my_ls'
52+
assert executable.shell is True
53+
assert executable.emulate_tty is True
54+
assert executable.output[0].perform(None) == 'log'
55+
assert executable.sigkill_timeout[0].perform(None) == '4.0'
56+
assert executable.sigterm_timeout[0].perform(None) == '7.0'
5857
key, value = executable.additional_env[0]
5958
key = key[0].perform(None)
6059
value = value[0].perform(None)
61-
assert(key == 'var')
62-
assert(value == '1')
60+
assert key == 'var'
61+
assert value == '1'
6362
ls = LaunchService()
6463
ls.include_launch_description(ld)
65-
assert(0 == ls.run())
64+
assert 0 == ls.run()
6665

6766

6867
def test_executable_on_exit():

0 commit comments

Comments
 (0)