Skip to content

Commit a0b9088

Browse files
denis-osipovvstinner
authored andcommitted
[3.5] bpo-30584: Fix test_os fails on non-English Windows (GH-1980) (#2000)
* Fix bpo-30584 * Adding a comment mentionning the bpo and explaining what is the identifier * Add Denis Osipov to Misc/ACKS (cherry picked from commit 897bba7)
1 parent 54ba41e commit a0b9088

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

Lib/test/test_os.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -448,7 +448,9 @@ def test_access_denied(self):
448448
# force CreateFile to fail with ERROR_ACCESS_DENIED.
449449
DETACHED_PROCESS = 8
450450
subprocess.check_call(
451-
['icacls.exe', fname, '/deny', 'Users:(S)'],
451+
# bpo-30584: Use security identifier *S-1-5-32-545 instead
452+
# of localized "Users" to not depend on the locale.
453+
['icacls.exe', fname, '/deny', '*S-1-5-32-545:(S)'],
452454
creationflags=DETACHED_PROCESS
453455
)
454456
result = os.stat(fname)

Misc/ACKS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1101,6 +1101,7 @@ William Orr
11011101
Michele Orrù
11021102
Tomáš Orsava
11031103
Oleg Oshmyan
1104+
Denis Osipov
11041105
Denis S. Otkidach
11051106
Peter Otten
11061107
Michael Otteneder

0 commit comments

Comments
 (0)