-
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
Debugging tests is returning errors due to "unsupported status" #15736
Comments
exact same error on linux, fyi. Extension host log
|
Exactly same problem on macOS Big Sur. And I use Pylance and I am NOT in any experiment group. I've seen this problem in different projects and also on VSCode remote (Linux). If I use the bug icon on Test Explorer view, only error " If I use cmd+shift+P (Command Palette) -> Python: Debug Test Method... I got:
and
From my {
"name": "PyTest Debug",
"type": "python",
"request": "test",
"justMyCode": true,
"console": "integratedTerminal",
"env": {
"PYTEST_ADDOPTS": "--no-cov",
"APP_ENV": "prod",
}
} |
VS Code version: 1.55 |
Just started hitting this error as well. Debugging tests is still working as expected, but the error is showing up. |
Exact same issue here:
|
The python extension auto-updated in my VS Code devcontainer. The problem seems to have been resolved by this version: v2021.4.765268190 |
I can confirm I don't see any issues anymore with:
|
Not here, I still have that error. |
I'm running version 1.56.0 and I'm getting this error every time I try to run a single test. When I try to "run all tests" it does work. Pytest version is 6.2.2. |
@Maverickzero, I can confirm the same behavior on 1.56.1.
|
I'm on 1.56.2 and also saw "Error: Error: unsupported status (Discovering)" today - even when normally running a single test, without debugging. |
I got this issue today, my tests passed (seen in output), but the last line of the output was FYI, just restarting VSCode seemed to fix this. Probably something with an underlying process getting stuck. |
When I change a test and run it without re-Discover tests I get : VSCode information: |
This should be addressed by #16769 |
Environment data
[NOTE: If you suspect that your issue is related to the Microsoft Python Language Server (
python.languageServer: 'Microsoft'
), please download our new language server Pylance from the VS Code marketplace to see if that fixes your issue]Actual behaviour
Debugging tests shows an error notification even though the test passes:
Steps to reproduce:
[NOTE: Self-contained, minimal reproducing code samples are extremely helpful and will expedite addressing your issue]
Python: Configure Tests
, selectpytest
and then.
for root directory.str
instead ofio.BytesIO
Logs
Output for
Python
in theOutput
panel (View
→Output
, change the drop-down the upper-right of theOutput
panel toPython
)Output for
Python Test Log
in theOutput
panel (View
→Output
, change the drop-down the upper-right of theOutput
panel toPython
)The text was updated successfully, but these errors were encountered: