mirror of
https://github.com/python/cpython.git
synced 2025-08-10 03:49:18 +00:00
[3.12] gh-120164: Fix test_os.test_win32_mkdir_700() (GH-120177) (#120203)
gh-120164: Fix test_os.test_win32_mkdir_700() (GH-120177)
Don't compare the path to avoid encoding issues.
(cherry picked from commit d5ba4fc9bc
)
Co-authored-by: Kirill Podoprigora <kirill.bast9@mail.ru>
Co-authored-by: Eryk Sun <eryksun@gmail.com>
This commit is contained in:
parent
92a38e9874
commit
3730f60f39
1 changed files with 3 additions and 2 deletions
|
@ -1823,9 +1823,10 @@ class MakedirTests(unittest.TestCase):
|
|||
os.mkdir(path, mode=0o700)
|
||||
out = subprocess.check_output(["cacls.exe", path, "/s"], encoding="oem")
|
||||
os.rmdir(path)
|
||||
out = out.strip().rsplit(" ", 1)[1]
|
||||
self.assertEqual(
|
||||
out.strip(),
|
||||
f'{path} "D:P(A;OICI;FA;;;SY)(A;OICI;FA;;;BA)(A;OICI;FA;;;OW)"',
|
||||
out,
|
||||
'"D:P(A;OICI;FA;;;SY)(A;OICI;FA;;;BA)(A;OICI;FA;;;OW)"',
|
||||
)
|
||||
|
||||
def tearDown(self):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue