Nick Coghlan added the comment: That I can help with. Steal the "import_fresh_module helper function from test.support (or the gist of it anyway - you can likely leave out the stuff about deprecated imports):
http://hg.python.org/cpython/file/default/Lib/test/support/__init__.py#l192 Then do: pip_nossl = import_fresh_module("pip", blocked=["ssl"]) ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue19744> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com