Update web-platform-tests to revision 9817f7f027fe1e92cc2fce31d6002c4d669918e8

This commit is contained in:
WPT Sync Bot 2018-03-08 20:11:36 -05:00 committed by Josh Matthews
parent 8e52f8a523
commit f3533538ea
2144 changed files with 21364 additions and 11001 deletions

View file

@ -4,6 +4,7 @@
# This tool creates .html test files for the WPT harness from corresponding .test
# files that it finds in the tree for this test collection.
from __future__ import print_function
import re
import time
@ -40,7 +41,7 @@ for curdir, subdirList, fileList in os.walk(DEFDIR, topdown=True):
try:
testJSON = json.load(open(theFile, "r"))
except ValueError as e:
print "parse of " + theFile + " failed: " + e[0]
print("parse of " + theFile + " failed: " + e[0])
else:
theFile = re.sub("\.\./", "", theFile)
defList.append(theFile)
@ -65,7 +66,7 @@ for curdir, subdirList, fileList in os.walk(TESTTREE, topdown=True):
try:
testJSON = json.load(open(theFile, "r"))
except ValueError as e:
print "parse of " + theFile + " failed: " + e[0]
print("parse of " + theFile + " failed: " + e[0])
else:
try:
testType = testJSON['testType']