Update web-platform-tests to revision dc5cbf088edcdb266541d4e5a76149a2c6e716a0

This commit is contained in:
Ms2ger 2016-09-09 09:40:35 +02:00
parent 1d40075f03
commit 079092dfea
2381 changed files with 90360 additions and 17722 deletions

View file

@ -24,7 +24,7 @@ test_file_path_pattern = '%(spec_name)s/' + selection_pattern + \
def get_template(basename):
with open(os.path.join(template_directory, basename)) as f:
with open(os.path.join(template_directory, basename), "r") as f:
return f.read()
@ -45,7 +45,7 @@ def load_spec_json(path_to_spec = None):
path_to_spec = spec_filename
re_error_location = re.compile('line ([0-9]+) column ([0-9]+)')
with open(path_to_spec) as f:
with open(path_to_spec, "r") as f:
try:
return json.load(f)
except ValueError, ex: