From 1dce906aeaebb3d1c5c7a14811c6b40faa68b09f Mon Sep 17 00:00:00 2001 From: Craig Tiller <ctiller@google.com> Date: Wed, 20 Jan 2016 17:01:56 -0800 Subject: [PATCH] Use ast.literal_eval instead of json.loads to avoid unicode problems on windows --- tools/run_tests/run_tests.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/run_tests/run_tests.py b/tools/run_tests/run_tests.py index e31fc30980..6e4a1499e7 100755 --- a/tools/run_tests/run_tests.py +++ b/tools/run_tests/run_tests.py @@ -480,7 +480,7 @@ class Build(object): # different configurations we can run under with open('tools/run_tests/configs.json') as f: - _CONFIGS = dict((cfg['config'], Config(**cfg)) for cfg in json.loads(f.read())) + _CONFIGS = dict((cfg['config'], Config(**cfg)) for cfg in ast.literal_eval(f.read())) _DEFAULT = ['opt'] -- GitLab