-
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 assumes wrong encoding for stdout #16705
Comments
I think the bug here is there's no checking what |
I am facing the same issue. I use pytest and in my project I have parametrized test class for a number of instances. The error happens for me in this initialization stage where my fixture tries to parse json files and fails with an error The problem is that one of my json configs have letter Interestingly, this error does not occur if I run tests from the console, only when I run tests via VSCode. I could provide a sample project if it is necessary. |
We are about to embark on rewriting our test adapter code, so hopefully that will resolve this issue. /cc @kimadeline |
For everyone facing the same problem. It took me ages to realize the workaround for this was rather simple. |
Hello! We have just finished our testing rewrite and are beginning the roll out to users. If you are able, it would be very helpful to know if your issue still exists on the rewrite! To try it yourself, you need to be on the most recent release of the Python extension and add this setting to your users You can confirm you have the rewrite enabled by setting Let me know if the rewrite fixes your issue. Thanks! |
closing as this should be fixed by changes made during #18346. Thanks |
Environment data
Commit: c3f126316369cd610563c75b1b1725e0679adfb3
Date: 2021-07-14T22:10:15.214Z (1 day ago)
Electron: 12.0.13
Chrome: 89.0.4389.128
Node.js: 14.16.0
V8: 8.9.255.25-electron.0
OS: Windows_NT x64 10.0.19043
[OK] [Copy]
python.languageServer
setting: "Pylance"Expected behaviour
Test Discovery shows all the tests PYTEST discovers when run in Powershell via
pytest
.Actual behaviour
Test Discovery fails with following stack trace:
Steps to reproduce:
Misc
I asked about this on MS' Discord Server and received the following answer from @brettcannon:
The text was updated successfully, but these errors were encountered: