-
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
backwards compatible hookwrapper for pytest_xdist_auto_num_workers
doesn't work
#23816
Comments
fixed in #23791 |
@eleanorjboyd Are there any specific steps to verify this. |
Steps:
|
@eleanorjboyd I see this after step 3: I don't see anything in the python output about |
@andreamah can you reload? What do the logs say? Also does the dropdown work with the ones with the correct tests |
Here are the logs: logs
It also might be a bad environment- it was left over from testing something else. |
yeah this errored, need to re-open: ImportError: Error importing plugin "vscode_pytest": cannot import name 'Result' from 'pluggy' (c:\Users\andreamah\OneDrive - Microsoft\Documents\for-testing\pytest-test\venv\Lib\site-packages\pluggy_init_.py) |
what version of pluggy are you using? |
fixed in #23866 |
@andreamah what version of python are you running into this on? |
3.11.9 |
I was able to verify, @DetachHead are you able to try it with the most recent version of the python pre-release extension to confirm it works with what we shipped out? Thanks! |
yep it works |
- Don't use xdist when only running one test. this makes it slightly faster when running one test, because instead of creating a single worker it just runs the test in the same process - fix microsoft#23816 - fix issue where the plugin was being registered multiple times --------- Co-authored-by: detachhead <detachhead@users.noreply.github.com>
…icrosoft#23866) fixes microsoft#23816 --------- Co-authored-by: detachhead <detachhead@users.noreply.github.com> Co-authored-by: eleanorjboyd <eleanorboyd@microsoft.com>
Type: Bug
Behaviour
the change in #23781 now causes the pytest plugin to crash
the fix i suggested here will fix the crash, but for some reason using
hookwrapper
instead ofwrapper
causes the hook to not work at all, and i can't figure out why. i will do some more investigating and see i can figure it outSteps to reproduce:
environment information
pytest version: 8.2.2
pluggy version: 1.5.0
Extension version: 2024.11.2024071501 (i manually updated the pytest plugin with the change from #23781)
VS Code version: Code 1.91.0 (ea1445cc7016315d0f5728f8e8b12a45dc0a7286, 2024-07-01T18:52:22.949Z)
OS version: Windows_NT x64 10.0.22621
Modes:
The text was updated successfully, but these errors were encountered: