diff options
author | Kirill Podoprigora <kirill.bast9@mail.ru> | 2024-06-07 09:14:13 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-06-07 09:14:13 (GMT) |
commit | d5ba4fc9bc9b2d9eff2a90893e8d500e0c367237 (patch) | |
tree | 8ab88129e343453179a1bfc27f828539d8ecdcb7 /Lib | |
parent | 47816f465e833a5257a82b759b1081e06381e528 (diff) | |
download | cpython-d5ba4fc9bc9b2d9eff2a90893e8d500e0c367237.zip cpython-d5ba4fc9bc9b2d9eff2a90893e8d500e0c367237.tar.gz cpython-d5ba4fc9bc9b2d9eff2a90893e8d500e0c367237.tar.bz2 |
gh-120164: Fix test_os.test_win32_mkdir_700() (#120177)
Don't compare the path to avoid encoding issues.
Co-authored-by: Eryk Sun <eryksun@gmail.com>
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/test/test_os.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Lib/test/test_os.py b/Lib/test/test_os.py index de5a86f..2beb9ca 100644 --- a/Lib/test/test_os.py +++ b/Lib/test/test_os.py @@ -1837,9 +1837,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): |