Project

General

Profile

« Previous | Next » 

Revision 50a0341b

Added by koszko about 1 year ago

restore compatibility with python 3.7

View differences:

tests/test_build.py
281 281
@collect(variant_makers)
282 282
def sample_source_add_comments(monkeypatch, sample_source):
283 283
    """Add index.json comments that should be preserved."""
284
    for dictionary in index_obj, *index_obj['definitions'], *expected:
284
    for dictionary in (index_obj, *index_obj['definitions'], *expected):
285 285
        monkeypatch.setitem(dictionary, 'comment', 'index.json comment')
286 286

  
287 287
@collect(variant_makers)
......
356 356
def sample_source_make_version_2(monkeypatch, sample_source,
357 357
                                 expected_documents_to_modify=[]):
358 358
    """Increase sources' schema version from 1 to 2."""
359
    for obj in index_obj, *expected_documents_to_modify:
359
    for obj in (index_obj, *expected_documents_to_modify):
360 360
        monkeypatch.setitem(obj, '$schema', obj['$schema'].replace('1', '2'))
361 361

  
362 362
permission_variant_makers = []

Also available in: Unified diff