#25170: assertXMLEqual fails when white space is present outside XML fragment
-----------------------------------+------------------------------------
Reporter: shelldweller | Owner: quamilek
Type: Bug | Status: assigned
Component: Testing framework | Version: master
Severity: Normal | Resolution:
Keywords: test | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 1
Easy pickings: 1 | UI/UX: 0
-----------------------------------+------------------------------------
Comment (by jbzdak):
Whitespace around tags is indeed siginificant --- technically following
documents *are* different
{{{
<foo></foo>
}}}
and
{{{
<foo>
</foo>
}}}
however for most practical purposes this difference is insignificant, as
most of XML-based formats ignore whitespace altogether (like html).
Despite that I think that in unittesting framework we should rather assume
pessimistic case that whitespace does matter.
--
Ticket URL: <https://code.djangoproject.com/ticket/25170#comment:8>
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 post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/070.32ef64498e6b7b0017bc5d9cff1b95aa%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.