From 8b11cf2a312bba651c4e78ddd9cc5e6c91effd64 Mon Sep 17 00:00:00 2001 From: Alex Burke Date: Mon, 23 Dec 2024 16:26:59 +0100 Subject: [PATCH] try to get more info about the HTML that appears to fail assertions --- tests/support/htmlsupp.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/support/htmlsupp.py b/tests/support/htmlsupp.py index d0b9afbbe..8c050d7ea 100644 --- a/tests/support/htmlsupp.py +++ b/tests/support/htmlsupp.py @@ -68,4 +68,4 @@ def assertIsValidHtmlDocument(self, value, permit_no_close=False): except Exception as exc: error = exc if error: - raise AssertionError("failed to verify input string as HTML: %s", str(error)) + raise AssertionError("failed to verify input string as HTML: %s\ndocument:%s" % (str(error), value))