summaryrefslogtreecommitdiff
path: root/tests/sources/git.py
diff options
context:
space:
mode:
authorBenjamin Schubert <ben.c.schubert@gmail.com>2019-03-01 11:11:15 +0000
committerbst-marge-bot <marge-bot@buildstream.build>2019-03-01 18:28:36 +0000
commitff059b8b9852054f6669bb8bdeb6945ff0631b70 (patch)
tree90a0a943f1a0565220032fdc5c7a789de88a51a8 /tests/sources/git.py
parent1eba1fed210d9814a06ef2b9a24610132b18235c (diff)
downloadbuildstream-ff059b8b9852054f6669bb8bdeb6945ff0631b70.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/sources/git.py')
-rw-r--r--tests/sources/git.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/sources/git.py b/tests/sources/git.py
index f3d2e2809..98891a9af 100644
--- a/tests/sources/git.py
+++ b/tests/sources/git.py
@@ -869,11 +869,11 @@ def test_git_describe(cli, tmpdir, datafiles, ref_storage, tag_type):
options = []
else:
options = ['--tags']
- describe = subprocess.check_output(['git', 'describe'] + options,
+ describe = subprocess.check_output(['git', 'describe', *options],
cwd=checkout).decode('ascii')
assert describe.startswith('tag2-2-')
- describe_fp = subprocess.check_output(['git', 'describe', '--first-parent'] + options,
+ describe_fp = subprocess.check_output(['git', 'describe', '--first-parent', *options],
cwd=checkout).decode('ascii')
assert describe_fp.startswith('tag1-2-')
@@ -979,7 +979,7 @@ def test_git_describe_head_is_tagged(cli, tmpdir, datafiles, ref_storage, tag_ty
options = []
else:
options = ['--tags']
- describe = subprocess.check_output(['git', 'describe'] + options,
+ describe = subprocess.check_output(['git', 'describe', *options],
cwd=checkout).decode('ascii')
assert describe.startswith('tag')