[issue10556] test_zipimport_support mucks up with modules

Nick Coghlan report at bugs.python.org
Tue Jan 11 10:32:34 CET 2011


Nick Coghlan <ncoghlan at gmail.com> added the comment:

Even more special: put a test_doctest in first and the attempt to clean up sys.modules in test_zipimport_support leaves things alone so the _ssl module doesn't break (test_doctest just leaves sys.modules alone and doesn't even try to remove all the modules it implicitly imports).

I'm actually tempted to remove test.support.modules_setup() and modules_cleanup() and delete the calls from the affected tests. Trying to clear out implicitly imported modules is going to create far more problems than it resolves.

----------

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


More information about the Python-bugs-list mailing list