diff options
author | Denis Osipov <osipov_d@list.ru> | 2017-06-07 17:15:26 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@gmail.com> | 2017-06-07 17:15:26 (GMT) |
commit | 897bba75632dfce87c355e3cd4700468357715a7 (patch) | |
tree | c39abed33c9369024f737b6b399894add9d62325 | |
parent | add98eb4fe41baeaa70fbd4ccc020833740609a4 (diff) | |
download | cpython-897bba75632dfce87c355e3cd4700468357715a7.zip cpython-897bba75632dfce87c355e3cd4700468357715a7.tar.gz cpython-897bba75632dfce87c355e3cd4700468357715a7.tar.bz2 |
bpo-30584: Fix test_os fails on non-English Windows (#1980)
* Fix bpo-30584
* Adding a comment mentionning the bpo and explaining what is the identifier
* Add Denis Osipov to Misc/ACKS
-rw-r--r-- | Lib/test/test_os.py | 4 | ||||
-rw-r--r-- | Misc/ACKS | 1 |
2 files changed, 4 insertions, 1 deletions
diff --git a/Lib/test/test_os.py b/Lib/test/test_os.py index 746b3f8..4a21ff7 100644 --- a/Lib/test/test_os.py +++ b/Lib/test/test_os.py @@ -472,7 +472,9 @@ class StatAttributeTests(unittest.TestCase): # 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) @@ -1132,6 +1132,7 @@ William Orr Michele Orrù Tomáš Orsava Oleg Oshmyan +Denis Osipov Denis S. Otkidach Peter Otten Michael Otteneder |