diff options
| author | Natalia <124304+nessita@users.noreply.github.com> | 2025-07-21 15:23:32 -0300 |
|---|---|---|
| committer | nessita <124304+nessita@users.noreply.github.com> | 2025-08-13 17:48:37 -0300 |
| commit | 74fafe2715fa2569a1682defcedc12a2e03b13d1 (patch) | |
| tree | 1861ef1ee2307ee8a669af897750b674db100525 | |
| parent | a4e27c0c6bcc37ad7d7f6098e5d44edbbcca2c42 (diff) | |
[5.2.x] Fixed test_utils.tests.HTMLEqualTests.test_parsing_errors following Python's HTMLParser fixed parsing.
Further details about Python changes can be found in:
https://github.com/python/cpython/commit/0243f97cbadec8d985e63b1daec5d1cbc850cae3.
Refs #36499. Thank you Clifford Gama for the thorough review!
Backport of e4515dad7a6d953c0bd2414127ba36e1446ff41a from main.
| -rw-r--r-- | tests/test_utils/tests.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test_utils/tests.py b/tests/test_utils/tests.py index 359cf07402..7d21bd82a9 100644 --- a/tests/test_utils/tests.py +++ b/tests/test_utils/tests.py @@ -948,7 +948,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>") |
