-
Notifications
You must be signed in to change notification settings - Fork 69
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
[BUG]PermissionError: [WinError 5] #224
Comments
@zhaod34 i'm obtaining the same problem (access denied), PermissionError: [WinError 5] Accesso negato: 'test-results\test-test-browser-test-user-test-megasearch-test-content-visualization-py-testcontentvisualization-test-content-visualization-with-docuviewer-chromium-pdf\video-1.webm' that's happening because of xdist, indeed even if there is the exception, the folder is deleted, that means that xdist, spawning different processes, is trying to delete the same files simuntaneally to other xdist processes, i'm tring to use one of the pytest webhook to empty the folder. did you found another solution in the meanwhile? |
for now i'm using this workaround
|
I have the same issue also using xdist. The workaround is rerunning the tests again as the folder is deleted and in the second run you do not see the error. But it wastes a lot of time. |
This should be fixed in v0.5.1 which is getting published rn. Thanks to @nck974. |
Context
run
pytest -n 3 test_case
Sometimes report the error:
The text was updated successfully, but these errors were encountered: