[issue5354] Add test.support.import_python_only

Nick Coghlan report at bugs.python.org
Sat Apr 11 16:25:18 CEST 2009


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

Ended up going for a slightly more general name "import_fresh_module".
Reason being, test_warnings *also* wanted a fresh version of the
accelerated module along with a pure Python version - it seemed silly to
only factor out half of the problem into a support function, when the
support function could handle both tasks fairly easily.

So I implemented a version of the fresh import function that blocks no
extension modules by default, but still accepts a list of names to be
disabled during the import.

----------

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


More information about the Python-bugs-list mailing list