diff --git a/Lib/test/test_tempfile.py b/Lib/test/test_tempfile.py index e6c89beb48a452..58cdcb1a2a06da 100644 --- a/Lib/test/test_tempfile.py +++ b/Lib/test/test_tempfile.py @@ -1660,7 +1660,7 @@ def test_cleanup_with_error_deleting_symlink(self): d1 = self.do_create() d2 = self.do_create(recurse=0) - # Symlink d1/my_symlink -> d2, then give d2 a custom mode to see if changes. + # Symlink d1/my_symlink -> d2, then give d2 a custom mode to see if it changes. os.symlink(d2.name, os.path.join(d1.name, "my_symlink")) os.chmod(d2.name, 0o567) expected_mode = os.stat(d2.name).st_mode # can be impacted by umask etc. diff --git a/Misc/NEWS.d/next/Library/2022-12-01-16-57-44.gh-issue-91133.LKMVCV.rst b/Misc/NEWS.d/next/Library/2022-12-01-16-57-44.gh-issue-91133.LKMVCV.rst index 131aa2b75e25da..7991048fc48e03 100644 --- a/Misc/NEWS.d/next/Library/2022-12-01-16-57-44.gh-issue-91133.LKMVCV.rst +++ b/Misc/NEWS.d/next/Library/2022-12-01-16-57-44.gh-issue-91133.LKMVCV.rst @@ -1,2 +1,2 @@ -Fix a bug :class:`tempfile.TemporaryDirectory` cleanup, which now no longer +Fix a bug in :class:`tempfile.TemporaryDirectory` cleanup, which now no longer dereferences symlinks when working around file system permission errors.