Fix ordering of prototype diff output for test

This commit is contained in:
Griatch 2018-10-14 10:56:44 +02:00
parent e9fb17528d
commit 95c3adc163
2 changed files with 22 additions and 19 deletions

View file

@ -2004,7 +2004,8 @@ def _format_diff_text_and_options(diff, **kwargs):
("diff", diff)), **kwargs))})
optnum += 1
else:
for key, subdiffpart in diffpart.items():
for key in sorted(list(diffpart.keys())):
subdiffpart = diffpart[key]
text, option, optnum = _parse_diffpart(
subdiffpart, optnum, *(args + (key, )))
texts.extend(text)