Skip to content

Commit

Permalink
bpo-30584: Fix test_os fails on non-English Windows (#1980)
Browse files Browse the repository at this point in the history
* Fix bpo-30584

* Adding a comment mentionning the bpo and explaining what is the identifier

* Add Denis Osipov to Misc/ACKS
  • Loading branch information
denis-osipov authored and vstinner committed Jun 7, 2017
1 parent add98eb commit 897bba7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Lib/test/test_os.py
Expand Up @@ -472,7 +472,9 @@ def test_access_denied(self):
# force CreateFile to fail with ERROR_ACCESS_DENIED.
DETACHED_PROCESS = 8
subprocess.check_call(
['icacls.exe', fname, '/deny', 'Users:(S)'],
# bpo-30584: Use security identifier *S-1-5-32-545 instead
# of localized "Users" to not depend on the locale.
['icacls.exe', fname, '/deny', '*S-1-5-32-545:(S)'],
creationflags=DETACHED_PROCESS
)
result = os.stat(fname)
Expand Down
1 change: 1 addition & 0 deletions Misc/ACKS
Expand Up @@ -1132,6 +1132,7 @@ William Orr
Michele Orrù
Tomáš Orsava
Oleg Oshmyan
Denis Osipov
Denis S. Otkidach
Peter Otten
Michael Otteneder
Expand Down

0 comments on commit 897bba7

Please sign in to comment.