This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author ncoghlan
Recipients dstufft, ncoghlan, paul.moore, python-dev, r.david.murray
Date 2014-02-06.11:35:07
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1391686507.83.0.465548781798.issue20053@psf.upfronthosting.co.za>
In-reply-to
Content
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 :(
History
Date User Action Args
2014-02-06 11:35:07ncoghlansetrecipients: + ncoghlan, paul.moore, r.david.murray, python-dev, dstufft
2014-02-06 11:35:07ncoghlansetmessageid: <1391686507.83.0.465548781798.issue20053@psf.upfronthosting.co.za>
2014-02-06 11:35:07ncoghlanlinkissue20053 messages
2014-02-06 11:35:07ncoghlancreate