Skip to content
This repository was archived by the owner on Aug 5, 2022. It is now read-only.

Conversation

@krocard
Copy link
Contributor

@krocard krocard commented Feb 10, 2015

The exportToXML was creating an minidom.Element using it's constructor, which is forbidden in the documentation:

Applications should not instantiate the classes themselves; they should use the creator functions available on the Document object.
http://docs.python.org/library/xml.dom.minidom.html

Since python 3.4 this method no longer works (private interface change) thus the xml coverage generation was broken.

Fix by calling the recommended method Document.createElement.

See bug: http://bugs.python.org/issue15290

Signed-off-by: Kevin Rocard kevin.rocard@intel.com

The exportToXML was creating an minidom.Element using
it's constructor, which is forbidden in the documentation:
> Applications should not instantiate the classes themselves; they should use the creator functions available on the Document object.
http://docs.python.org/library/xml.dom.minidom.html

Since python 3.4 this method no longer works (private interface change)
thus the xml coverage generation was broken.

Fix by calling the recommended method Document.createElement.

See bug: http://bugs.python.org/issue15290

Signed-off-by: Kevin Rocard <kevin.rocard@intel.com>
@krocard
Copy link
Contributor Author

krocard commented Feb 10, 2015

@gdenneul @makohoek @dawagner 👍

@makohoek
Copy link
Contributor

Commit seems good to me, however the renaming could be done in another patch even if it makes sense to rename it here since you introduce the "document" variable in this patch.
👍

@dawagner
Copy link
Contributor

👍

dawagner added a commit that referenced this pull request Feb 13, 2015
Use minidom factory methods in xml coverage generator
@dawagner dawagner merged commit 42bd9cf into intel:master Feb 13, 2015
@dawagner dawagner added the bug label Jun 16, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants