summaryrefslogtreecommitdiff
path: root/tests/sources/tar.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/tar.py
parent1eba1fed210d9814a06ef2b9a24610132b18235c (diff)
downloadbuildstream-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/sources/tar.py')
-rw-r--r--tests/sources/tar.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/sources/tar.py b/tests/sources/tar.py
index 959ff890c..9284a25a3 100644
--- a/tests/sources/tar.py
+++ b/tests/sources/tar.py
@@ -377,7 +377,7 @@ def test_netrc_already_specified_user(cli, datafiles, server_type, tmpdir):
with create_file_server(server_type) as server:
server.add_user('otheruser', '12345', file_server_files)
parts = urllib.parse.urlsplit(server.base_url())
- base_url = urllib.parse.urlunsplit([parts[0]] + ['otheruser@{}'.format(parts[1])] + list(parts[2:]))
+ base_url = urllib.parse.urlunsplit([parts[0], 'otheruser@{}'.format(parts[1]), *parts[2:]])
generate_project_file_server(base_url, project)
src_tar = os.path.join(file_server_files, 'a.tar.gz')