-
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 discovery tries to run pytest when disabled #22765
Comments
if you reload your vscode window and try again with the settings already set to unittest on and pytest off does this still occur? |
I just faced the same issue and reloading the window after setting the relevant lines solved the issue, tests were discovered appropriately. VSCode: v1.86.2 |
Hi! I have found the issue here and am working on a fix! 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. Happy Coding! |
as an update this will be fixed by dynamic activation of test adapters which is currently blocked on our config redesign |
Hello! Realized this is actually a duplicate of the following: #21688. I do have a solution but am looking for the right time to implement given some other projects in the same code area. |
I have the same issue here with latest version of
and when click
|
@shaojun please try reloading again- it still says its attempting to access pytest |
Type: Bug
Behaviour
Expected vs. Actual
With
"python.testing.pytestEnabled": false
insettings.json
, the extensions still attempts to runwhich results in
Steps to reproduce:
Add
to
settings.json
Populate
python.testing.unittestArgs
to point to your unit tests.Tests are not discovered and you get error
[error] python.exe: No module named pytest
Diagnostic data
python.languageServer
setting: DefaultOutput for
Python
in theOutput
panel (View
→Output
, change the drop-down the upper-right of theOutput
panel toPython
)User Settings
Extension version: 2023.22.1
VS Code version: Code 1.85.2 (8b3775030ed1a69b13e4f4c628c612102e30a681, 2024-01-18T06:40:10.514Z)
OS version: Windows_NT x64 10.0.22621
Modes:
A/B Experiments
The text was updated successfully, but these errors were encountered: