Skip to content

fix: include VIRTUAL_ENV variable - #1842

Merged
mayeut merged 1 commit into
pypa:mainfrom
henryiii:henryiii/fix/VIRTUAL_ENV
May 29, 2024
Merged

mayeut merged 1 commit into
pypa:mainfrom
henryiii:henryiii/fix/VIRTUAL_ENV

Conversation

@henryiii

@henryiii henryiii commented May 28, 2024 •

Copy link
Copy Markdown
Contributor

Include the VIRTUAL_ENV variable when running "in" a virtualenv. This will be useful when we start trying out uv.

Signed-off-by: Henry Schreiner <henryschreineriii@gmail.com>
@henryiii
henryiii requested a review from mayeut May 29, 2024 02:29
@mayeut
mayeut merged commit c333b13 into pypa:main May 29, 2024
Comment thread test/test_testing.py

self.assertTrue(path_contains(sys.prefix, sys.executable))
self.assertTrue(path_contains(sys.prefix, spam.__file__))
self.assertIn("VIRTUAL_ENV", os.environ)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Just thinking after I've merged the PR...
Should a test like this one be added for build environments as well ? (except on Linux)

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.

2 participants