Skip to content
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

Test for .venv symlink #6597

Merged
merged 1 commit into from
Aug 26, 2024
Merged

Test for .venv symlink #6597

merged 1 commit into from
Aug 26, 2024

Conversation

hauntsaninja
Copy link
Contributor

@hauntsaninja hauntsaninja commented Aug 25, 2024

For various reasons, I have a preference for out of tree virtual environments. Things just work if I symlink, but I don't know that this is guaranteed, so I thought I'd add a test for it. It looks like there's another code path that matters (FoundInterpreter::discover -> PythonEnvironment::from_root) for the higher level commands, but couldn't spot a good place to test that.

Related discussion: #1495 (comment) / #1578 (comment)

Copy link
Member

@zanieb zanieb left a comment

Choose a reason for hiding this comment

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

Works for me. If you wanted to add more coverage, the python_find tests are probably the place.

@zanieb zanieb added internal A refactor or improvement that is not user-facing testing Internal testing of behavior labels Aug 26, 2024
@zanieb zanieb merged commit 6220532 into astral-sh:main Aug 26, 2024
57 checks passed
@hauntsaninja hauntsaninja deleted the symlink-test branch August 26, 2024 16:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
internal A refactor or improvement that is not user-facing testing Internal testing of behavior
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants