test_safe_parse_xml not working with some minidom versions
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Cinder |
Fix Released
|
Undecided
|
Jay Bryant |
Bug Description
While running the cinder unit tests on a RHEL6 based system using python2.6 I saw the following test case error:
=======
FAIL: test_safe_parse_xml (cinder.
-------
Traceback (most recent call last):
File "/home/
self.
AssertionError: '<?xml version="1.0" ?><foo>\n <bar>\n <v1>hey</v1>\n <v2>there</v2>\n </bar>\n </foo>' != '<?xml version="1.0" ?>\n<foo>\n <bar>\n <v1>hey</v1>\n <v2>there</v2>\n </bar>\n </foo>'
>> raise self.failureExc
(None or '%r != %r' % ('<?xml version="1.0" ?><foo>\n <bar>\n <v1>hey</v1>\n <v2>there</v2>\n </bar>\n </foo>', '<?xml version="1.0" ?>\n<foo>\n <bar>\n <v1>hey</v1>\n <v2>there</v2>\n </bar>\n </foo>'))
-------
Ran 1379 tests in 78.258s
After doing some searching I found the following Bug #1158826 in the Nova project. The bug notes that some versions of minidom inject extra newlines in the parsed XML that is returned. The fix they proposed there also works for Cinder.
Changed in cinder: | |
milestone: | none → havana-1 |
status: | Fix Committed → Fix Released |
Changed in cinder: | |
milestone: | havana-1 → 2013.2 |
Fix proposed to branch: master /review. openstack. org/27434
Review: https:/