[issue16817] test___all__ has to save and restore sys.modules while it does all the importing

Eli Bendersky report at bugs.python.org
Sun Dec 30 15:02:23 CET 2012


Eli Bendersky added the comment:

David, how would this help pickle not find _elementtree though? It's already in sys.modules *before* fresh_import is used, because test___all__ put it there.

I'm experimenting with just deleting _elementtree from sys.modules before running the tests, so far with little success.

----------

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


More information about the Python-bugs-list mailing list