]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.12] gh-105002: [pathlib] Fix relative_to with walk_up=True using ".." (GH-107014...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Wed, 26 Jul 2023 20:17:31 +0000 (13:17 -0700)
committerGitHub <noreply@github.com>
Wed, 26 Jul 2023 20:17:31 +0000 (20:17 +0000)
commit4f6d7a5890760434015d9e90a6e81bf9e9b5c52f
tree337ef4553fa2da054d1b9b607023b9841ed0e6da
parent58af565c5085c427203ee424585a2c3ed0db4981
[3.12] gh-105002: [pathlib] Fix relative_to with walk_up=True using ".." (GH-107014) (#107315)

gh-105002: [pathlib] Fix relative_to with walk_up=True using ".." (GH-107014)

It makes sense to raise an Error because ".." can not
be resolved and the current working directory is unknown.
(cherry picked from commit e7e6e4b035f51ab4a962b45a957254859f264f4f)

Co-authored-by: János Kukovecz <kukoveczjanos@gmail.com>
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]