-
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
pytest 5.1.0 seems to break the test adapter #6990
Comments
@krazyace78 @pvscbot Also mentioning @Johnnyxy and @BLeAm as I see they posted a reaction to it. I have the same issue. Try downgrading to pytest 5.0.1 (via
|
Upon further examination, the output between 5.1.0 and 5.0.1 seems to be the same, so I do not know why this would trigger an error, but I know that downgrading to 5.0.1 fixed it for me. |
@marsfan Thank you for mentioning me and the workaround. |
Thank you for the workaround @marsfan! |
I have the same issue, and the workaround did the trick for me. Thanks @marsfan! |
+1 works for me now @marsfan |
Additionally, if you do not use any environments: global install: user install: |
@krazyace78, thanks for letting us know about this. It looks like pytest 5.1.0 changed something in their XML output. We'll get this fixed as soon as we can. |
Also need to uninstall and reinstall pytest-cov after downgrading |
Prescribed solution
|
Due to a bug with VSCode running tests with pytest 5.1 fails, so locking to 5.0.1 until that is fixed. See microsoft/vscode-python#6990
* add the vscode folder for development settings * pin pytest version microsoft/vscode-python#6990 * make docker development file * update manifest * add docker toolbox visual instructions * add code-server instructions eliminate broken links misc spelling * add static file path in conf.py * add restructeredtext previewer * change default settings including not showing gitlens intro screen * add optional devel build [build] * add documentation for adding git credentials to docker container [build devel] * make pip install editable * add restructuredtext to list of extensions installed
The suggestion of @marsfan was great but while I am debugging I faced with the following error after the last instruction, my assertion |
Downgrading to 5.0.1 fixed my issues with VS Code and PyTest |
This is a precursor to the fix for #6990.
Downgrading pytest fixed my issues, thanks @marsfan |
Hi all, it's fixed in the insiders version of the extension now. (You can use The fix will be out in the next stable release. |
VSCode issue was solved in latest insiders version (microsoft/vscode-python#6990 (comment))
Issue Type: Bug
After updating VSCode from v1.36.1 to v1.37.1 (in WSL), pytest unit tests are no longer displaying green/red status in the side bar. An error pop-up is displayed with the following message:
There was an error in running the tests.
Source Python (Extension)
The OUTPUT tab indicates that the test passed, but there is also an error message that seems like it is related to the extension issue:
Extension version: 2019.8.30787
VS Code version: Code 1.37.1 (f06011ac164ae4dc8e753a3fe7f9549844d15e35, 2019-08-15T16:17:55.855Z)
OS version: Windows_NT x64 10.0.17134
Remote OS version: Linux x64 4.4.0-17134-Microsoft
System Info
flash_3d: enabled
flash_stage3d: enabled
flash_stage3d_baseline: enabled
gpu_compositing: enabled
multiple_raster_threads: enabled_on
native_gpu_memory_buffers: disabled_software
oop_rasterization: disabled_off
protected_video_decode: unavailable_off
rasterization: enabled
skia_deferred_display_list: disabled_off
skia_renderer: disabled_off
surface_synchronization: enabled_on
video_decode: enabled
viz_display_compositor: disabled_off
webgl: enabled
webgl2: enabled
The text was updated successfully, but these errors were encountered: