Skip to content

Commit

Permalink
gh-118802: Fix ACL use in test for non-English Windows (GH-118831)
Browse files Browse the repository at this point in the history
  • Loading branch information
zooba authored May 9, 2024
1 parent 7c87ce7 commit 82acc5f
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions Lib/test/test_os.py
Original file line number Diff line number Diff line change
Expand Up @@ -3226,9 +3226,8 @@ def test_stat_inaccessible_file(self):
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)

Expand Down

0 comments on commit 82acc5f

Please sign in to comment.