Skip to content

Modify tests to ensure $PYTHONPATH is given to the custom interpreter #353

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

Merged
merged 3 commits into from
Apr 12, 2024

Conversation

kemzeb
Copy link
Collaborator

@kemzeb kemzeb commented Apr 12, 2024

Should finally resolve #343.

Before 2.17.0, we weren't honoring $PYTHONPATH when it was passed to the custom interpreter (but were honoring it when not using a custom interpreter).

With the changes made in 2.17.0, we (unexpectedly) began to honor $PYTHONPATH when using --python. I believe this is fine since as I explained above we honored it when it was used without this option and because of this it makes sense to pass this env var to the custom interpreter child process instead of ignoring it. Maybe we should document this in the 2.17.0 release notes?

This adds a test and changes another to ensure that there aren't future hiccups when using this env var.

Copy link
Member

@gaborbernat gaborbernat left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Member

@gaborbernat gaborbernat left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@gaborbernat gaborbernat enabled auto-merge (squash) April 12, 2024 18:09
@gaborbernat gaborbernat merged commit bf5a865 into tox-dev:main Apr 12, 2024
@kemzeb kemzeb deleted the fix_non_host_tests branch April 12, 2024 21:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

test_custom_interpreter fails
2 participants