diff options
author | Ken Jin <kenjin@python.org> | 2023-12-05 13:30:59 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-05 13:30:59 (GMT) |
commit | 8cdfee1bb902fd1e38d79170b751ef13a0907262 (patch) | |
tree | e5476cbdd925cd354e014610ba7050120769ad1a /Misc | |
parent | 5aa317e4ca619c3735e1d67b507f01a8e49a4c49 (diff) | |
download | cpython-8cdfee1bb902fd1e38d79170b751ef13a0907262.zip cpython-8cdfee1bb902fd1e38d79170b751ef13a0907262.tar.gz cpython-8cdfee1bb902fd1e38d79170b751ef13a0907262.tar.bz2 |
bpo-43153: Don't mask `PermissionError` with `NotADirectoryError` during tempdirectory cleanup (GH-29940)
Co-authored-by: andrei kulakov <andrei.avk@gmail.com>
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Diffstat (limited to 'Misc')
-rw-r--r-- | Misc/NEWS.d/next/Library/2021-12-06-22-10-53.bpo-43153.J7mjSy.rst | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Library/2021-12-06-22-10-53.bpo-43153.J7mjSy.rst b/Misc/NEWS.d/next/Library/2021-12-06-22-10-53.bpo-43153.J7mjSy.rst new file mode 100644 index 0000000..7800e0a --- /dev/null +++ b/Misc/NEWS.d/next/Library/2021-12-06-22-10-53.bpo-43153.J7mjSy.rst @@ -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. |