Skip to content

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

Merged
gaborbernat merged 3 commits intotox-dev:mainfrom
kemzeb:fix_non_host_tests
Apr 12, 2024
Merged

Modify tests to ensure $PYTHONPATH is given to the custom interpreter#353
gaborbernat merged 3 commits intotox-dev:mainfrom
kemzeb:fix_non_host_tests

Conversation

@kemzeb
Copy link
Copy Markdown
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
Copy Markdown
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.

Comment thread tests/test_non_host.py
Copy link
Copy Markdown
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