-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Review rm_rf handling of FileNotFoundErrors
- Loading branch information
1 parent
82e9013
commit ba4b8c8
Showing
3 changed files
with
29 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
Properly ignore ``FileNotFoundError`` exceptions when trying to remove old temporary directories, | ||
for instance when multiple processes try to remove the same directory (common with ``pytest-xdist`` | ||
for example). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@nicoddemus
Why would two xdist processes race for the same
rm_rf
? Should they only handle their own dirs?Also the "more context" link refers to a comment from me that talks about losing the exception context there being bad, i.e. it is not relevant.