mirror of
https://github.com/django/django.git
synced 2025-08-20 16:59:12 +00:00
Fixed test_utils.tests.HTMLEqualTests.test_parsing_errors following Python's HTMLParser fixed parsing.
Further details about Python changes can be found in:
0243f97cba
.
Thank you Clifford Gama for the thorough review!
This commit is contained in:
parent
2c99fbcf95
commit
e4515dad7a
@ -962,7 +962,7 @@ class HTMLEqualTests(SimpleTestCase):
|
||||
"('Unexpected end tag `div` (Line 1, Column 6)', (1, 6))"
|
||||
)
|
||||
with self.assertRaisesMessage(AssertionError, error_msg):
|
||||
self.assertHTMLEqual("< div></ div>", "<div></div>")
|
||||
self.assertHTMLEqual("< div></div>", "<div></div>")
|
||||
with self.assertRaises(HTMLParseError):
|
||||
parse_html("</p>")
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user