Update web-platform-tests to revision 46aeb6c47e00b0cd3ebcab3735ec1aba7806ca79

This commit is contained in:
WPT Sync Bot 2020-01-16 08:22:41 +00:00
parent 7b6e60883f
commit 2ac52623c2
3570 changed files with 12529 additions and 11891 deletions

View file

@ -1,6 +1,7 @@
from __future__ import print_function
import os, sys, json, re
import collections
script_directory = os.path.dirname(os.path.abspath(__file__))
template_directory = os.path.abspath(
@ -30,7 +31,7 @@ def load_spec_json(path_to_spec):
re_error_location = re.compile('line ([0-9]+) column ([0-9]+)')
with open(path_to_spec, "r") as f:
try:
return json.load(f)
return json.load(f, object_pairs_hook=collections.OrderedDict)
except ValueError as ex:
print(ex.message)
match = re_error_location.search(ex.message)