[issue20053] venv and ensurepip are affected by default pip config file

Nick Coghlan report at bugs.python.org
Thu Feb 6 12:35:07 CET 2014


Nick Coghlan added the comment:

EnvironmentVarGuard doesn't work through monkeypatching - you make your changes *through* the guard, and it undoes them in __exit__, as well as restoring the original binding (in case *other* code monkeypatched it).

This allows it to still be used when testing code that is *supposed* to make real environment changes (e.g. so they're visible in a subprocess).

Buildbot is currently down, so I can't check the logs again :(

----------

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


More information about the Python-bugs-list mailing list