Nick Coghlan <ncogh...@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 <rep...@bugs.python.org> <http://bugs.python.org/issue5354> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com