Update web-platform-tests to revision 993a932dca2b378a44dc55f4ee80812f65d8fb4e

This commit is contained in:
WPT Sync Bot 2020-02-20 08:20:07 +00:00
parent f5ff38b875
commit af74a5d2cf
331 changed files with 3327 additions and 3531 deletions

View file

@ -1,6 +1,6 @@
from __future__ import print_function
import os, sys, json, re
import os, sys, json, json5, re
import collections
script_directory = os.path.dirname(os.path.abspath(__file__))
@ -31,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, object_pairs_hook=collections.OrderedDict)
return json5.load(f, object_pairs_hook=collections.OrderedDict)
except ValueError as ex:
print(ex.message)
match = re_error_location.search(ex.message)