Skip to content

Commit b644ffa

Browse files
zoobaSonicField
authored andcommitted
pythongh-118802: Fix ACL use in test for non-English Windows (pythonGH-118831)
1 parent e570920 commit b644ffa

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

Lib/test/test_os.py

Lines changed: 2 additions & 3 deletions
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)