Update web-platform-tests to revision 9fc797e6e5fb7d244dfb5b5125886c01f8cedf2b

This commit is contained in:
WPT Sync Bot 2019-02-05 21:00:19 -05:00
parent b7e9bab267
commit 6dda93c6e2
55 changed files with 646 additions and 128 deletions

View file

@ -3,6 +3,7 @@
# Initial code by fantasai, joint copyright 2010 W3C and Microsoft
# Licensed under BSD 3-Clause: <http://www.w3.org/Consortium/Legal/2008/03-bsd-license>
from __future__ import print_function
from os.path import basename, exists, join
import os
import filecmp
@ -965,7 +966,7 @@ class XMLSource(FileSource):
if ((not self.metadata) and self.tree and (not self.errors)):
self.extractMetadata(self.tree)
except etree.ParseError as e:
print "PARSE ERROR: " + self.sourcepath
print("PARSE ERROR: " + self.sourcepath)
self.cacheAsParseError(self.sourcepath, e)
e.W3CTestLibErrorLocation = self.sourcepath
self.errors = [str(e)]
@ -1375,7 +1376,7 @@ class HTMLSource(XMLSource):
if ((not self.metadata) and self.tree and (not self.errors)):
self.extractMetadata(self.tree)
except Exception as e:
print "PARSE ERROR: " + self.sourcepath
print("PARSE ERROR: " + self.sourcepath)
e.W3CTestLibErrorLocation = self.sourcepath
self.errors = [str(e)]
self.encoding = 'utf-8'