diff options
author | Benjamin Schubert <ben.c.schubert@gmail.com> | 2019-03-01 11:11:15 +0000 |
---|---|---|
committer | bst-marge-bot <marge-bot@buildstream.build> | 2019-03-01 18:28:36 +0000 |
commit | ff059b8b9852054f6669bb8bdeb6945ff0631b70 (patch) | |
tree | 90a0a943f1a0565220032fdc5c7a789de88a51a8 /tests/frontend/show.py | |
parent | 1eba1fed210d9814a06ef2b9a24610132b18235c (diff) | |
download | buildstream-bschubert/more-pythonic-list-concat.tar.gz |
Use [a, b, *c] instead of [a, b] + c when building listbschubert/more-pythonic-list-concat
This pattern is available from python3.5 and provides a simpler
understanding of what is going on
Diffstat (limited to 'tests/frontend/show.py')
-rw-r--r-- | tests/frontend/show.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/frontend/show.py b/tests/frontend/show.py index ac1edebd6..73cda9108 100644 --- a/tests/frontend/show.py +++ b/tests/frontend/show.py @@ -181,7 +181,7 @@ def test_parallel_order(cli, tmpdir, datafiles): elements = ['multiple_targets/order/0.bst', 'multiple_targets/order/1.bst'] - args = ['show', '-d', 'plan', '-f', '%{name}'] + elements + args = ['show', '-d', 'plan', '-f', '%{name}', *elements] result = cli.run(project=project, args=args) result.assert_success() @@ -210,7 +210,7 @@ def test_target_is_dependency(cli, tmpdir, datafiles): elements = ['multiple_targets/dependency/zebry.bst', 'multiple_targets/dependency/horsey.bst'] - args = ['show', '-d', 'plan', '-f', '%{name}'] + elements + args = ['show', '-d', 'plan', '-f', '%{name}', *elements] result = cli.run(project=project, args=args) result.assert_success() |