#33236: assertHTMLEqual shows incorrect diff
-----------------------------------+--------------------------------------
     Reporter:  Pratyush Mittal    |                    Owner:  nobody
         Type:  Bug                |                   Status:  new
    Component:  Testing framework  |                  Version:  3.2
     Severity:  Normal             |               Resolution:
     Keywords:                     |             Triage Stage:  Unreviewed
    Has patch:  1                  |      Needs documentation:  0
  Needs tests:  0                  |  Patch needs improvement:  0
Easy pickings:  1                  |                    UI/UX:  0
-----------------------------------+--------------------------------------

Comment (by Pratyush Mittal):

 The bug is probably caused because the `__str__` method in the `Element`
 class treats all its children the same. The children are either a tree or
 string. In the case of a string, the Python's HTMLParser unescapes the
 contents. For their string representation, we probably need to escape them
 back.

 I have tried to fix this in this pull-request:
 https://github.com/django/django/pull/15033

-- 
Ticket URL: <https://code.djangoproject.com/ticket/33236#comment:1>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/072.dfbc3d25c9f3915c99b23f4876300e35%40djangoproject.com.

Reply via email to