]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-105002: [pathlib] Fix relative_to with walk_up=True using ".." (#107014)
authorJános Kukovecz <kukoveczjanos@gmail.com>
Wed, 26 Jul 2023 19:44:55 +0000 (21:44 +0200)
committerGitHub <noreply@github.com>
Wed, 26 Jul 2023 19:44:55 +0000 (20:44 +0100)
commite7e6e4b035f51ab4a962b45a957254859f264f4f
tree85f651d2d1252a9e60d30b214cd212ffdbd91b17
parent6d5b6e71c87fca7c5c26f5dd8f325087962215cc
gh-105002: [pathlib] Fix relative_to with walk_up=True using ".." (#107014)

It makes sense to raise an Error because ".." can not
be resolved and the current working directory is unknown.
Lib/pathlib.py
Lib/test/test_pathlib.py
Misc/NEWS.d/next/Library/2023-07-22-12-53-53.gh-issue-105002.gkfsW0.rst [new file with mode: 0644]