summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteve Dower <steve.dower@python.org>2024-05-09 12:59:18 (GMT)
committerGitHub <noreply@github.com>2024-05-09 12:59:18 (GMT)
commit82acc5f2113bffd0ed902851f4ccf5b9be8980b2 (patch)
treefb302f8e2ca3717b7885e172b43ac425ab7d645e
parent7c87ce777b3fd9055b118a58ec8614901ecb45e9 (diff)
downloadcpython-82acc5f2113bffd0ed902851f4ccf5b9be8980b2.zip
cpython-82acc5f2113bffd0ed902851f4ccf5b9be8980b2.tar.gz
cpython-82acc5f2113bffd0ed902851f4ccf5b9be8980b2.tar.bz2
gh-118802: Fix ACL use in test for non-English Windows (GH-118831)
-rw-r--r--Lib/test/test_os.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/Lib/test/test_os.py b/Lib/test/test_os.py
index 9c9c853..9088318 100644
--- a/Lib/test/test_os.py
+++ b/Lib/test/test_os.py
@@ -3226,9 +3226,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)