mirror of
https://github.com/python/cpython.git
synced 2025-08-10 03:49:18 +00:00
gh-118802: Fix ACL use in test for non-English Windows (GH-118831)
(cherry picked from commit 82acc5f211
)
Co-authored-by: Steve Dower <steve.dower@python.org>
This commit is contained in:
parent
0d626760a4
commit
c0d257cc69
1 changed files with 2 additions and 3 deletions
|
@ -3176,9 +3176,8 @@ class Win32NtTests(unittest.TestCase):
|
|||
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)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue