Page MenuHomeSoftware Heritage

Fix test_cli.invoke for old PyYAML versions (such as 3.13, in Debian 10).
ClosedPublic

Authored by vlorentz on Aug 3 2020, 11:43 AM.

Details

Summary

Old versions of PyYAML serialize dicts using {} instead of 'key: value';
but {} was interpreted by .format(), causing a KeyError.

Fixes debian build [1]

[1] https://jenkins.softwareheritage.org/view/Debian%20packages/job/debian/job/packages/job/DSEA/job/gbp-buildpackage/12/console

Diff Detail

Repository
rDSEA Archive search
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

ardumont edited the summary of this revision. (Show Details)
ardumont added a subscriber: ardumont.

Thanks.

This revision is now accepted and ready to land.Aug 3 2020, 11:44 AM

Build is green

Patch application report for D3686 (id=12985)

Rebasing onto cbf71e563d...

Current branch diff-target is up to date.
Changes applied before test
commit cd790375d89381a753fa2af72701cc35d265d642
Author: Valentin Lorentz <vlorentz@softwareheritage.org>
Date:   Mon Aug 3 11:43:30 2020 +0200

    Fix test_cli.invoke for old PyYAML versions (such as 3.13, in Debian 10).
    
    Old versions of PyYAML serialize dicts using {} instead of 'key: value';
    but {} was interpreted by .format(), causing a KeyError.

See https://jenkins.softwareheritage.org/job/DSEA/job/tests-on-diff/36/ for more details.