https://github.com/python/cpython/commit/1e43f76b7689536233c018ee51d6d5b9d96cf34f commit: 1e43f76b7689536233c018ee51d6d5b9d96cf34f branch: 3.13 author: Miss Islington (bot) <31488909+miss-isling...@users.noreply.github.com> committer: vstinner <vstin...@python.org> date: 2024-06-07T09:39:56Z summary:
[3.13] gh-120164: Fix test_os.test_win32_mkdir_700() (GH-120177) (#120202) gh-120164: Fix test_os.test_win32_mkdir_700() (GH-120177) Don't compare the path to avoid encoding issues. (cherry picked from commit d5ba4fc9bc9b2d9eff2a90893e8d500e0c367237) Co-authored-by: Kirill Podoprigora <kirill.ba...@mail.ru> Co-authored-by: Eryk Sun <eryk...@gmail.com> files: M Lib/test/test_os.py diff --git a/Lib/test/test_os.py b/Lib/test/test_os.py index de5a86f676c4d5..2beb9ca8aa6ccb 100644 --- a/Lib/test/test_os.py +++ b/Lib/test/test_os.py @@ -1837,9 +1837,10 @@ def test_win32_mkdir_700(self): 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): _______________________________________________ Python-checkins mailing list -- python-checkins@python.org To unsubscribe send an email to python-checkins-le...@python.org https://mail.python.org/mailman3/lists/python-checkins.python.org/ Member address: arch...@mail-archive.com