aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorWojtek Kosior <koszko@koszko.org>2022-06-14 10:40:57 +0200
committerWojtek Kosior <koszko@koszko.org>2022-06-14 10:40:57 +0200
commit50a0341baa5fc9a8e999f77e232cb21eae54ba0a (patch)
treee0053cd18f028ef71b9126b634f9862e02994a42 /tests
parent117bf196e195c758ca53fda3f9ab974767bfa90c (diff)
downloadhydrilla-builder-50a0341baa5fc9a8e999f77e232cb21eae54ba0a.tar.gz
hydrilla-builder-50a0341baa5fc9a8e999f77e232cb21eae54ba0a.zip
restore compatibility with python 3.7
Diffstat (limited to 'tests')
-rw-r--r--tests/test_build.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test_build.py b/tests/test_build.py
index a636488..8c204b9 100644
--- a/tests/test_build.py
+++ b/tests/test_build.py
@@ -281,7 +281,7 @@ def sample_source_change_index_json(monkeypatch, sample_source):
@collect(variant_makers)
def sample_source_add_comments(monkeypatch, sample_source):
"""Add index.json comments that should be preserved."""
- for dictionary in index_obj, *index_obj['definitions'], *expected:
+ for dictionary in (index_obj, *index_obj['definitions'], *expected):
monkeypatch.setitem(dictionary, 'comment', 'index.json comment')
@collect(variant_makers)
@@ -356,7 +356,7 @@ def sample_source_add_extra_props(monkeypatch, sample_source):
def sample_source_make_version_2(monkeypatch, sample_source,
expected_documents_to_modify=[]):
"""Increase sources' schema version from 1 to 2."""
- for obj in index_obj, *expected_documents_to_modify:
+ for obj in (index_obj, *expected_documents_to_modify):
monkeypatch.setitem(obj, '$schema', obj['$schema'].replace('1', '2'))
permission_variant_makers = []