Skip to content

Commit

Permalink
try to get more info about the HTML that appears to fail assertions
Browse files Browse the repository at this point in the history
  • Loading branch information
albu-diku committed Dec 23, 2024
1 parent 1cf4c52 commit 8b11cf2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/support/htmlsupp.py
Original file line number Diff line number Diff line change
Expand Up @@ -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))

0 comments on commit 8b11cf2

Please sign in to comment.