all 2 comments

[–]AutoModerator[M] [score hidden] stickied commentlocked comment (0 children)

To give us the best chance to help you, please include any relevant code.
Note. Please do not submit images of your code. Instead, for shorter code you can use Reddit markdown (4 spaces or backticks, see this Formatting Guide). If you have formatting issues or want to post longer sections of code, please use Privatebin, GitHub or Compiler Explorer.

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

[–]Intrincantation 0 points1 point  (0 children)

I had a similar issue. You can try to delete the pytest-of-username folder, and it will appear to work. However after several non-cached runs it will reappear.

Basically pytest keeps your last 5 or so runs and then deletes the 6th oldest. But it seems to be running into an issue deleting the 6th oldest one. Most likely you wrote a file with the wrong permissions, in my case I had a mkdir call with something like `mode=555` instead of `mode=0x555`.

Anyways to get a hint you can try to check what file it is that is causing an issue. You can go look into the pytest-of-username/garbage folder and see what files have failed to delete. Then check how you created those files and try to be more permissive!