mirror of
https://github.com/python/cpython.git
synced 2025-10-09 16:34:44 +00:00
GH-103220: Fix ntpath.join()
of partial UNC drive with trailing slash (GH-103221)
This commit is contained in:
parent
50b4b15984
commit
b57105ae33
3 changed files with 8 additions and 1 deletions
|
@ -300,6 +300,11 @@ class TestNtpath(NtpathTestCase):
|
|||
tester("ntpath.join('//computer/share', 'a', 'b')", '//computer/share\\a\\b')
|
||||
tester("ntpath.join('//computer/share', 'a/b')", '//computer/share\\a/b')
|
||||
|
||||
tester("ntpath.join('\\\\', 'computer')", '\\\\computer')
|
||||
tester("ntpath.join('\\\\computer\\', 'share')", '\\\\computer\\share')
|
||||
tester("ntpath.join('\\\\computer\\share\\', 'a')", '\\\\computer\\share\\a')
|
||||
tester("ntpath.join('\\\\computer\\share\\a\\', 'b')", '\\\\computer\\share\\a\\b')
|
||||
|
||||
def test_normpath(self):
|
||||
tester("ntpath.normpath('A//////././//.//B')", r'A\B')
|
||||
tester("ntpath.normpath('A/./B')", r'A\B')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue