[issue14128] _elementtree should expose types and factory functions consistently with ElementTree

Eli Bendersky report at bugs.python.org
Sun Mar 4 09:54:23 CET 2012


Eli Bendersky <eliben at gmail.com> added the comment:

Éric,

The tests *do* use import_fresh_module, actually. Moreover, while monkeypatching exists it's rather limited (just setting the module name for test_main).

The biggest problem with these tests is that they're based on doctest, which wasn't designed to be too flexible for this purpose. All new tests I'm adding use the unittest infrastructure in a saner way. Rewriting all existing tests from doctest to unittest, while a worthy goal, would be probably too time consuming at this point.

If you have any specific suggestions for improvement, please open a separate issue.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue14128>
_______________________________________


More information about the Python-bugs-list mailing list