Use ast.literal_eval instead of json.loads to avoid unicode problems on windows

pull/4791/head
Craig Tiller 9 years ago
parent aff3d50324
commit 1dce906aea
  1. 2
      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']

Loading…
Cancel
Save