-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Add ability to access env vars that are changed in test-related subprocesses #7082
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
Comments
One approach would be to have I'm not sure if this is a good approach, however. |
Whee! Thanks for filing a new issue for dedicated discussion! :)
Let's just do this, I don't mind the slightly-fragile nature of this and we can revisit this later if needed. |
@pradyunsg would it make sense to create a helper function that runs that, or do you think that should be delayed until it's needed at least twice? |
Let's delay that -- I'm fairly averse to over-engineering things so I don't think there's much point in doing this eagerly. |
@pradyunsg sounds good to me. In that case, should I go ahead and close this issue? |
I did that. ;) |
Uh oh!
There was an error while loading. Please reload this page.
What's the problem this feature will solve?
While I was working on #6391 to add a
pip cache
command, I ran into an issue where environment variables are changed in subprocesses started when a test usesscript.pip(...)
and similar, but I have no simple way to get this information. See #6391 (comment).Here's @chrahunt's explanation from #6391 (comment):
Describe the solution you'd like
TBD — I'm not sure what approach would be best, and was hoping to get some input on that.
Additional context
PR where this problem came to my attention: #6391
Code where the environment variables are changed: https://github.com/pypa/pip/blob/master/tests/conftest.py#L98-L166
File where
PipTestEnvironment
, a potential location for tracking this information, is defined: https://github.com/pypa/pip/blob/master/tests/lib/__init__.pycc @chrahunt
The text was updated successfully, but these errors were encountered: