Fix subunit describe calls for py3

iteritems does not exists in python3, and it's
actually enough to iterate over keys.

Change-Id: I1a614942e25af26fedc720e5ebf8f800e0c54138
This commit is contained in:
Andrea Frittoli 2017-02-27 16:06:23 +00:00
parent 18026ce378
commit e6a375e6e6
1 changed files with 2 additions and 1 deletions

View File

@ -294,7 +294,8 @@ def output(url_parser, output_file):
outfile.write(json.dumps(url_parser.test_logs))
return
for test_name, items in url_parser.test_logs.iteritems():
for test_name in url_parser.test_logs:
items = url_parser.test_logs[test_name]
sys.stdout.write('{0}\n'.format(test_name))
if not items:
sys.stdout.write('\n')