forked from python/cpython
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[3.12] bpo-43153: Don't mask
PermissionError
with `NotADirectoryErr…
…or` during tempdirectory cleanup (pythonGH-29940) (pythonGH-112753) (cherry picked from commit 8cdfee1) Co-authored-by: Ken Jin <[email protected]> Co-authored-by: andrei kulakov <[email protected]> Co-authored-by: Serhiy Storchaka <[email protected]>
- Loading branch information
1 parent
68f05dd
commit 5acfb82
Showing
3 changed files
with
41 additions
and
2 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
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
4 changes: 4 additions & 0 deletions
4
Misc/NEWS.d/next/Library/2021-12-06-22-10-53.bpo-43153.J7mjSy.rst
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,4 @@ | ||
On Windows, ``tempfile.TemporaryDirectory`` previously masked a | ||
``PermissionError`` with ``NotADirectoryError`` during directory cleanup. It | ||
now correctly raises ``PermissionError`` if errors are not ignored. Patch by | ||
Andrei Kulakov and Ken Jin. |