Commit 34f0d85e authored by Jose Fonseca's avatar Jose Fonseca
Browse files

framework: Fix 'module' object has no attribute 'XMLSyntaxError'.



etree.XMLSyntaxError is only available with lxml.  etree.ParseError is
available everywhere.  For lxml, etree.XMLSyntaxError is a subclass of
etree.ParseError.
Reviewed-by: default avatarDylan Baker <dylanx.c.baker@intel.com>
parent 0039f7e4
......@@ -87,7 +87,7 @@ class JUnitBackend(FileBackend):
# failed transaction and ignore it.
try:
piglit.append(etree.parse(f).getroot())
except etree.XMLSyntaxError:
except etree.ParseError:
continue
# set the test count by counting the number of tests.
......
......@@ -268,5 +268,5 @@ def test_junit_skips_bad_tests():
try:
test.finalize()
except etree.XMLSyntaxError as e:
except etree.ParseError as e:
raise AssertionError(e)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment