PYTHONPATH gets overwritten when running tests #19969
Labels
area-environments
Features relating to handling interpreter environments
area-testing
bug
Issue identified by VS Code Team member as probable bug
info-needed
Issue requires more information from poster
reports-wanted
Looking for more people with the same issue
triage-needed
Needs assignment to the proper sub-team
one loads the .env variables correctly in integrated python (python test runnter), the other doesn't.
Any hints for debugging this?
EDIT: also installing python-dotenv does not alleviate this. I can confirm that python-dotenv works (when running pytest from commandline), but when I run the tests using the sidebar, it seems like VS Code is overwriting all env variables with some internal state, hence also resetting PYTHONPATH to "."
Originally posted by @niderhoff in #6891 (comment)
The text was updated successfully, but these errors were encountered: