-
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
Could not start tests due to HookimplMarker.__call__() got an unexpected keyword argument 'wrapper' #23707
Comments
Hi! Is there any reason you need to stay on pytest version 7? Pytest is now on version 8 so we are looking to move people here for their versioning. Thanks |
@eleanorjboyd, hi. no option for backwards compatibility? |
when i added this hook in #23539 i tried using the old if pytest 7 still needs to be supported, perhaps this hook can be conditionally defined depending on the version of pytest that the user has installed? |
@DetachHead and @somenewacc, yes lets do something for backwards compatibility, I will investigate |
Hi @somenewacc, I went and replicated your environment myself and am not able to see the issue arise. My pytest info is: |
@eleanorjboyd hi! I'm on WSL Ubuntu 22.04 (Linux x64 5.15.153.1-microsoft-standard-WSL2). I created simple project:
def test_a():
assert True
{
"python.testing.pytestArgs": [
"."
],
"python.testing.unittestEnabled": false,
"python.testing.pytestEnabled": true
} Python extension version: v2024.9.2024062703 (pre-release) Hope that helps! |
Got same error. On VSCode
works fine.
and got error with pytest.
|
I see documentation: https://pluggy.readthedocs.io/en/stable/index.html#hookwrappers Workaround: upgrade pluggy to 1.2.0 minimum ( |
I fixed it by run this command:
|
This works for me too. Thank you! |
I just put in a fix for backwards compatibility as well but upgrading is the best strategy to avoid this version in the future since it did get pulled. Thanks |
Type: Bug
Behaviour
When I try to refresh or start tests error occurs:
Steps to reproduce:
Related to: #23539
Added in pluggy 1.2.0: pytest-dev/pluggy@e241aed
Diagnostic data
Output for
Python
in theOutput
panel (View
→Output
, change the drop-down the upper-right of theOutput
panel toPython
)Extension version: 2024.8.1
VS Code version: Code 1.90.1 (611f9bfce64f25108829dd295f54a6894e87339d, 2024-06-11T21:01:24.262Z)
OS version: Windows_NT x64 10.0.22631
Modes:
Remote OS version: Linux x64 5.15.153.1-microsoft-standard-WSL2
python.languageServer
setting: DefaultUser Settings
Installed Extensions
System Info
canvas_oop_rasterization: enabled_on
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
skia_graphite: disabled_off
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: enabled
A/B Experiments
The text was updated successfully, but these errors were encountered: