diff --git a/selftests/unit/test_xunit.py b/selftests/unit/test_xunit.py index 4267f1c3537f789c9fe157b3151a99bc2a1587b7..69819506e775290f4fc39c16c700a913f0517d46 100644 --- a/selftests/unit/test_xunit.py +++ b/selftests/unit/test_xunit.py @@ -91,8 +91,8 @@ class xUnitSucceedTest(unittest.TestCase): xmlschema = etree.XMLSchema(etree.parse(f)) # pylint: disable=I1101 # pylint: disable=I1101 self.assertTrue(xmlschema.validate(etree.parse(BytesIO(xml))), - "Failed to validate against %s, content:\n%s" % - (self.junit, xml)) + "Failed to validate against %s, content:\n%s\nerror log:\n%s" % + (self.junit, xml, xmlschema.error_log)) def test_max_test_log_size(self): log = tempfile.NamedTemporaryFile(dir=self.tmpdir, delete=False)