Skip to content

Commit a98e44a

Browse files
gh-118802: Fix ACL use in test for non-English Windows (GH-118831)
(cherry picked from commit 82acc5f) Co-authored-by: Steve Dower <[email protected]>
1 parent c4b853f commit a98e44a

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

Lib/test/test_os.py

+2-3
Original file line numberDiff line numberDiff line change
@@ -3226,9 +3226,8 @@ def test_stat_inaccessible_file(self):
32263226
self.skipTest("Unable to create inaccessible file")
32273227

32283228
def cleanup():
3229-
# Give delete permission. We are the file owner, so we can do this
3230-
# even though we removed all permissions earlier.
3231-
subprocess.check_output([ICACLS, filename, "/grant", "Everyone:(D)"],
3229+
# Give delete permission to the owner (us)
3230+
subprocess.check_output([ICACLS, filename, "/grant", "*WD:(D)"],
32323231
stderr=subprocess.STDOUT)
32333232
os.unlink(filename)
32343233

0 commit comments

Comments
 (0)