mirror of
https://github.com/python/cpython.git
synced 2025-08-31 05:58:33 +00:00
gh-126780: Fix ntpath.normpath()
for drive-relative paths (GH-126801)
This commit is contained in:
parent
0c5556fcb7
commit
60ec854bc2
4 changed files with 34 additions and 25 deletions
|
@ -379,6 +379,7 @@ class PosixPathTest(unittest.TestCase):
|
|||
("/.", "/"),
|
||||
("/./", "/"),
|
||||
("/.//.", "/"),
|
||||
("/./foo/bar", "/foo/bar"),
|
||||
("/foo", "/foo"),
|
||||
("/foo/bar", "/foo/bar"),
|
||||
("//", "//"),
|
||||
|
@ -388,6 +389,7 @@ class PosixPathTest(unittest.TestCase):
|
|||
("///..//./foo/.//bar", "/foo/bar"),
|
||||
(".", "."),
|
||||
(".//.", "."),
|
||||
("./foo/bar", "foo/bar"),
|
||||
("..", ".."),
|
||||
("../", ".."),
|
||||
("../foo", "../foo"),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue