Skip to content

Commit 6651b67

Browse files
committed
A few more test cases
1 parent 99f62bc commit 6651b67

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Lib/test/test_pathlib.py

+6
Original file line numberDiff line numberDiff line change
@@ -116,8 +116,14 @@ def test_parse_parts(self):
116116
check(['//?/c:/a'], ('\\\\?\\c:', '\\', ['\\\\?\\c:\\', 'a']))
117117
check(['//?/c:/a', '/b'], ('\\\\?\\c:', '\\', ['\\\\?\\c:\\', 'b']))
118118
# Extended UNC paths (format is "\\?\UNC\server\share").
119+
check(['//?'], ('\\\\?', '', ['\\\\?']))
120+
check(['//?/'], ('\\\\?\\', '', ['\\\\?\\']))
121+
check(['//?/UNC'], ('\\\\?\\UNC', '', ['\\\\?\\UNC']))
119122
check(['//?/UNC/'], ('\\\\?\\UNC\\', '', ['\\\\?\\UNC\\']))
123+
check(['//?/UNC/b'], ('\\\\?\\UNC\\b', '', ['\\\\?\\UNC\\b']))
124+
check(['//?/UNC/b/'], ('\\\\?\\UNC\\b\\', '', ['\\\\?\\UNC\\b\\']))
120125
check(['//?/UNC/b/c'], ('\\\\?\\UNC\\b\\c', '\\', ['\\\\?\\UNC\\b\\c\\']))
126+
check(['//?/UNC/b/c/'], ('\\\\?\\UNC\\b\\c', '\\', ['\\\\?\\UNC\\b\\c\\']))
121127
check(['//?/UNC/b/c/d'], ('\\\\?\\UNC\\b\\c', '\\', ['\\\\?\\UNC\\b\\c\\', 'd']))
122128
# UNC device paths
123129
check(['//./BootPartition/'], ('\\\\.\\BootPartition', '\\', ['\\\\.\\BootPartition\\']))

0 commit comments

Comments
 (0)