diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2024-05-09 13:41:15 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-09 13:41:15 (GMT) |
commit | c0d257cc69a943d2c211fe7ad54e706f1085ba1a (patch) | |
tree | 519678ab21230150cd9a4a499b68ddc332ec0933 | |
parent | 0d626760a436de3725e65619d68f1f4890a57b12 (diff) | |
download | cpython-c0d257cc69a943d2c211fe7ad54e706f1085ba1a.zip cpython-c0d257cc69a943d2c211fe7ad54e706f1085ba1a.tar.gz cpython-c0d257cc69a943d2c211fe7ad54e706f1085ba1a.tar.bz2 |
gh-118802: Fix ACL use in test for non-English Windows (GH-118831)
(cherry picked from commit 82acc5f2113bffd0ed902851f4ccf5b9be8980b2)
Co-authored-by: Steve Dower <steve.dower@python.org>
-rw-r--r-- | Lib/test/test_os.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/Lib/test/test_os.py b/Lib/test/test_os.py index e8f8004..7464aaa 100644 --- a/Lib/test/test_os.py +++ b/Lib/test/test_os.py @@ -3176,9 +3176,8 @@ class Win32NtTests(unittest.TestCase): self.skipTest("Unable to create inaccessible file") def cleanup(): - # Give delete permission. We are the file owner, so we can do this - # even though we removed all permissions earlier. - subprocess.check_output([ICACLS, filename, "/grant", "Everyone:(D)"], + # Give delete permission to the owner (us) + subprocess.check_output([ICACLS, filename, "/grant", "*WD:(D)"], stderr=subprocess.STDOUT) os.unlink(filename) |