diff options
author | Henrique Nakashima <hnakashima@chromium.org> | 2017-08-09 12:07:18 -0400 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2017-08-09 21:40:25 +0000 |
commit | 6470a6a5a5c0f447b71e1ac2451b6672a84186af (patch) | |
tree | 03cad92623df75efe4126b0d3351df83b60dd3f8 /testing/tools | |
parent | abe828092706c6c2c21d89dae93bc7efa854b67d (diff) | |
download | pdfium-6470a6a5a5c0f447b71e1ac2451b6672a84186af.tar.xz |
Fixing PrintConclusionsDictHumanReadable for dicts loaded from string.
json.loads() reads non-ascii filenames to a non-unicode string and an
encode step is required before a format.
Change-Id: I3145c7aa41e947f78898e73484c3cb1655418689
Reviewed-on: https://pdfium-review.googlesource.com/10410
Reviewed-by: Lei Zhang <thestig@chromium.org>
Commit-Queue: Henrique Nakashima <hnakashima@chromium.org>
Diffstat (limited to 'testing/tools')
-rw-r--r-- | testing/tools/safetynet_conclusions.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/testing/tools/safetynet_conclusions.py b/testing/tools/safetynet_conclusions.py index 112274e669..0761a91043 100644 --- a/testing/tools/safetynet_conclusions.py +++ b/testing/tools/safetynet_conclusions.py @@ -274,7 +274,7 @@ def PrintConclusionsDictHumanReadable(conclusions_dict, colored, key=None): print '{0} {1:15,d} {2}' .format( color.format('{:+11.4%}'.format(case_dict['ratio'])), case_dict['after'], - case_name) + case_name.encode('utf-8')) # Print totals totals = conclusions_dict['summary'] |