summaryrefslogtreecommitdiff
path: root/tests/sources
diff options
context:
space:
mode:
authorBenjamin Schubert <ben.c.schubert@gmail.com>2019-03-10 14:28:04 +0000
committerBenjamin Schubert <ben.c.schubert@gmail.com>2019-03-20 09:38:42 +0000
commit254cc4d02451225b1a99fe31f923d3f9f79b0acb (patch)
tree8cf66607f600d4178a4b21ae8ff69b1f9f04e383 /tests/sources
parentba62835edaa2af230122d9c104209085336b9fb2 (diff)
downloadbuildstream-254cc4d02451225b1a99fe31f923d3f9f79b0acb.tar.gz
tests:lint: don't use mutable default variables
Diffstat (limited to 'tests/sources')
-rw-r--r--tests/sources/generic/track_cross_junction.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/sources/generic/track_cross_junction.py b/tests/sources/generic/track_cross_junction.py
index 6a2a8001f..94f718d43 100644
--- a/tests/sources/generic/track_cross_junction.py
+++ b/tests/sources/generic/track_cross_junction.py
@@ -59,7 +59,10 @@ def generate_import_element(tmpdir, kind, project, name):
return element_name
-def generate_project(tmpdir, name, config={}):
+def generate_project(tmpdir, name, config=None):
+ if config is None:
+ config = {}
+
project_name = 'project-{}'.format(name)
subproject_path = os.path.join(str(tmpdir.join(project_name)))
os.makedirs(os.path.join(subproject_path, 'elements'))