Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit b644ffa

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

File tree

1 file changed

+2
-3
lines changed
Filter options

1 file changed

+2
-3
lines changed

‎Lib/test/test_os.py

Copy file name to clipboardExpand all lines: Lib/test/test_os.py
+2-3Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.