]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.12] gh-109295: Fix test_os.test_access_denied() for TEMP=cwd (GH-109299) (#109304)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Tue, 12 Sep 2023 14:23:03 +0000 (07:23 -0700)
committerGitHub <noreply@github.com>
Tue, 12 Sep 2023 14:23:03 +0000 (16:23 +0200)
commit7479a7aca2c8b5799ae0a84e2bbd5f07c0daf1b1
tree917872dc2c68821ac1d72942198c44f78f84cd58
parent8acfb42ea313cc2b7b898180820d2997c3971873
[3.12] gh-109295: Fix test_os.test_access_denied() for TEMP=cwd (GH-109299) (#109304)

gh-109295: Fix test_os.test_access_denied() for TEMP=cwd (GH-109299)

Fix test_os.test_access_denied() when the TEMP environment variable
is equal to the current working directory. Run the test using a
different filename, since self.fname already exists in this case.
(cherry picked from commit 7dedfd36dc16d9e1e15d7d0b0a636dd401a5a543)

Co-authored-by: Victor Stinner <vstinner@python.org>
Lib/test/test_os.py