-
Notifications
You must be signed in to change notification settings - Fork 3.1k
--user fixes part5: reset_env option for adding patches to sitecustomize #576
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Can you check the failures on 3.2 Test the test support awesomeness though. |
my local tox py32 run doesn't fail on the test that Travis fails on. |
hmm, I changed nothing relevant (expect to let errors bubble up), and it passed this time? |
I confirmed that there is not redundant sitecustomize growth in the Fast environment. |
so closed, but not merged? |
Umm I hit merge, not sure what happened |
--user fixes part5: reset_env option for adding patches to sitecustomize
yes, it worked!! |
part 5 of the pull #511 breakup
https://gist.github.com/2822510
part 5 is new in the plan as of today.
in writing tests for the next part, I was needing support for adding a monkey patch snippet to sitecustomize.py
this change adds an option to reset_env to allow any test to add a python code snippet to sitecustomize.py.
if you recall from part1, PyPIProxy.setup (which applies a monkey patch to urlopen) was moved to sitecustomize.py. the method that places that code was refactored to make use of this new general method.
the tests I wrote for this should make clear what this is about.