]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.11] gh-109295: Fix test_os.test_access_denied() for TEMP=cwd (GH-109299) (#109303)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Tue, 12 Sep 2023 02:00:36 +0000 (19:00 -0700)
committerGitHub <noreply@github.com>
Tue, 12 Sep 2023 02:00:36 +0000 (02:00 +0000)
commit5d47fb186e7f2689fec89c7bfd72448ad4d352ca
tree300ec80936b910a2c97e51c609d888fc95b7d056
parentabf3a68fe31b6e5700e75f1b41b7b5da5cf0596d
[3.11] gh-109295: Fix test_os.test_access_denied() for TEMP=cwd (GH-109299) (#109303)

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