MiscellaneousXMLUtilTests.test_safe_parse_xml fails on RHEL6

Bug #1158826 reported by Dan Prince
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Fix Released
High
Dan Prince

Bug Description

The following unit test appears to be failing on RHEL6:

2013-03-22 14:43:56.358 | Traceback (most recent call last):
2013-03-22 14:43:56.358 | File "/home/jenkins/workspace/gate-nova-python26-rhel6/nova/tests/api/openstack/test_xmlutil.py", line 738, in test_safe_parse_xml
2013-03-22 14:43:56.358 | self.assertEqual(normal_body, str(dom.toxml()))
2013-03-22 14:43:56.359 | MismatchError: !=:
2013-03-22 14:43:56.360 | reference = '''\
2013-03-22 14:43:56.361 | <?xml version="1.0" ?><foo>
2013-03-22 14:43:56.362 | <bar>
2013-03-22 14:43:56.363 | <v1>hey</v1>
2013-03-22 14:43:56.365 | <v2>there</v2>
2013-03-22 14:43:56.365 | </bar>
2013-03-22 14:43:56.366 | </foo>'''
2013-03-22 14:43:56.367 | actual = '''\
2013-03-22 14:43:56.367 | <?xml version="1.0" ?>
2013-03-22 14:43:56.368 | <foo>
2013-03-22 14:43:56.369 | <bar>
2013-03-22 14:43:56.370 | <v1>hey</v1>
2013-03-22 14:43:56.371 | <v2>there</v2>
2013-03-22 14:43:56.372 | </bar>
2013-03-22 14:43:56.373 | </foo>'''

Dan Prince (dan-prince)
Changed in nova:
assignee: nobody → Dan Prince (dan-prince)
importance: Undecided → High
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to nova (master)

Fix proposed to branch: master
Review: https://review.openstack.org/25211

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to nova (master)

Reviewed: https://review.openstack.org/25211
Committed: http://github.com/openstack/nova/commit/cff0ae1cd92eb8f85d410fa6f5844d0cc1b24a09
Submitter: Jenkins
Branch: master

commit cff0ae1cd92eb8f85d410fa6f5844d0cc1b24a09
Author: Dan Prince <email address hidden>
Date: Sat Mar 23 08:28:14 2013 -0400

    Avoid using whitespace in test_safe_parse_xml.

    Updates our MiscellaneousXMLUtilTests.test_safe_parse_xml test
    so that it avoids using and ignores whitespace. This works around some
    minidom parsing differences that can happen with some versions of python
    2.6.

    Fixes LP Bug #1158826.

    Change-Id: Iada0b095ab3b5ac6dc026b3ff6cdfb175f1e20a7

Changed in nova:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in nova:
milestone: none → havana-1
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in nova:
milestone: havana-1 → 2013.2
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.