-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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 runner appears to not respect the selected interpreter setting #7215
Comments
The issue occurs with a local repo cloned from https://github.com/dry-python/returns where |
Hi @SaschaSchlemmer. Thanks for letting us know about this. I have some questions:
|
|
@SaschaSchlemmer, sorry for the delay. The "Python test log" output panel should have included more information than that, such as error output from pytest or the test adapter script we use. Please include that output. Also, what command do you see run for test discovery in the "Python" output panel? It should reflect your |
I may have some additional info. I have Python 3.8 installed, but my Python 3.7 folder/exe is my default (interpretter is selected as Python 3.7.4 64-bit, that is the version in my venv, If I click the "pytest is not installed" pop-up "yes" to install pytest, the command is installing pytest using Python 3.8 (and the I cannot figure out why the Python extension is assuming I want it to use Python 3.8 and it's system and/or user directories as the location for pytest. |
Thanks for the update. Please answer the following:
Thanks! |
Because we have not heard back with the information we requested, we are closing this issue for now. If you are able to provide the info later on then we will be happy to re-open this issue to pick up where we left off. |
Extension version: 2019.9.34474
VS Code version: Code 1.38.0 (3db7e09f3b61f915d03bbfa58e258d6eee843f35, 2019-09-03T21:47:00.464Z)
OS version: Darwin x64 18.6.0
In settings.json I selected an interpreter (that has some additional dependencies for pytest installed) via "python.pythonPath". When I run
pytest tests
from the terminal (with the appropriate interpreter activated) my tests run fine, while the test runner complainsdue to some pytest argument error (presumably caused by not finding the proper dependencies)
The text was updated successfully, but these errors were encountered: