-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Handle only known functions in rm_rf #5627
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
Conversation
Codecov Report
@@ Coverage Diff @@
## master #5627 +/- ##
==========================================
+ Coverage 96.1% 96.13% +0.03%
==========================================
Files 117 117
Lines 25797 25822 +25
Branches 2495 2497 +2
==========================================
+ Hits 24791 24825 +34
+ Misses 701 693 -8
+ Partials 305 304 -1
Continue to review full report at Codecov.
|
@nicoddemus |
What do you mean, has this been fixed in |
No - it's not in features yet. |
Sorry I'm a little confused, when you said "I'm on features now", I understood that you were using pytest@features and this was no longer an issue for you. Did you mean something else? |
No, I've meant that: #5626 is only an issue on master, not features (since you've merged it to master). |
Ahh got it, thanks. 👍 I'll pick this up, probably will copy |
(Taking in account that your issue was really with |
@blueyed moved the internal error function to the module level and added a unittest. I think this is the best we can do, as testing the actual cases would involve a lot of work. Please rebase/merge if you think this is good. 👍 |
@nicoddemus |
looks awesome, please sort the type error on py35 |
Should be ready, @blueyed please squash/merge when you have a chance, thanks! |
After this, I plan to port this to |
@blueyed let me know if you want me to squash this myself. |
@nicoddemus |
Warnings are emitted if we cannot safely remove paths. Fix pytest-dev#5626
Done. This should be merged as soon as CI passes. |
Backport of pytest-dev#5627 Conflicts: - src/_pytest/pathlib.py Also had to adapt: - PermissionError into OSError with appropriate - Change keyword-only argument to **kwargs - Remove type annotations
[4.6] Handle only known functions in rm_rf (#5627)
Ref: #5626