[issue42464] Pathlib resolve() resolves non-existent ".." components with strict=False

Andrei Kulakov report at bugs.python.org
Thu Jul 8 09:12:56 EDT 2021


Andrei Kulakov <andrei.avk at gmail.com> added the comment:

Adding a patch that fixes this issue, for future reference. I'm not too sure this would be the right way to solve this. The patch also causes 5 failures in test_posixpath.py that would have to be fixed (most likely all can be fixed by creating respective dirs).

----------
keywords: +patch
nosy: +andrei.avk
Added file: https://bugs.python.org/file50141/do_not_resolve_dotdot_nonexistent.patch

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue42464>
_______________________________________


More information about the Python-bugs-list mailing list