We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c4b853f commit a98e44aCopy full SHA for a98e44a
Lib/test/test_os.py
@@ -3226,9 +3226,8 @@ def test_stat_inaccessible_file(self):
3226
self.skipTest("Unable to create inaccessible file")
3227
3228
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)"],
+ # Give delete permission to the owner (us)
+ subprocess.check_output([ICACLS, filename, "/grant", "*WD:(D)"],
3232
stderr=subprocess.STDOUT)
3233
os.unlink(filename)
3234
0 commit comments