-
-
Notifications
You must be signed in to change notification settings - Fork 32.7k
Fixed #36499 -- Adjusted utils_tests.test_html.TestUtilsHtml.test_strip_tags following Python's HTMLParser new behavior. #19639
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
There is one more failure in |
Yeah, I started fixing this test yesterday, and I've been trying to think what the right fix is, because is not straightforward. Before, this line: self.assertHTMLEqual("< div></ div>", "<div></div>") would raise an AssertionError with message:
Now it fails with:
I need to dig deeper to understand if the assertion message change is acceptable or not. |
be4c92c
to
9cb945b
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you 🌟!
Small typo proessing -> processing in 2nd commit msg
…ython's HTMLParser fixed parsing. Further details about Python changes can be found in: python/cpython@0243f97. Thank you Clifford Gama for the thorough review!
…ip_tags following Python's HTMLParser new behavior. Python fixed a quadratic complexity processing for HTMLParser in: python/cpython@6eb6c5d.
Thank you, I fixed the commit 🎯 |
🛑 Not to be merged before 3.13.6, 3.12.12, 3.11.14, 3.10.19 and 3.9.24 are released (and Jenkins CI gets updated).
Trac ticket number
ticket-36499
Branch description
As described in the ticket, Python's HTMLParser was adjusted to avoid poor performance on malformed HTML. This branch adjust the Django tests that were specifically added for performance related reports to follow Python's HTMLParser behavior.
Checklist
main
branch.