#25170: assertXMLEqual fails when white space is present outside XML fragment -----------------------------------+-------------------- Reporter: shelldweller | Owner: nobody Type: Bug | Status: new Component: Testing framework | Version: 1.8 Severity: Normal | Keywords: test Triage Stage: Unreviewed | Has patch: 0 Easy pickings: 1 | UI/UX: 0 -----------------------------------+-------------------- Currently this test fails:
{{{#!python class MyTestCase(TestCase): def test_xml(self): self.assertXMLEqual('<greeting>hello</greeting>', '<greeting>hello</greeting>\n') }}} I believe this is a bug because white space outside root tag should not matter. It makes testing rather confusing when reading XML documents from files (which may or may not have trailing new line characters). -- Ticket URL: <https://code.djangoproject.com/ticket/25170> 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 django-updates+unsubscr...@googlegroups.com. To post to this group, send email to django-updates@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-updates/055.101a5a61449ec561e8cdfd7243a0479d%40djangoproject.com. For more options, visit https://groups.google.com/d/optout.