Skip to content

Commit 8b11cf2

Browse files
committed
try to get more info about the HTML that appears to fail assertions
1 parent 1cf4c52 commit 8b11cf2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/support/htmlsupp.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,4 +68,4 @@ def assertIsValidHtmlDocument(self, value, permit_no_close=False):
6868
except Exception as exc:
6969
error = exc
7070
if error:
71-
raise AssertionError("failed to verify input string as HTML: %s", str(error))
71+
raise AssertionError("failed to verify input string as HTML: %s\ndocument:%s" % (str(error), value))

0 commit comments

Comments
 (0)