diff options
author | Barney Gale <barney.gale@gmail.com> | 2023-04-11 16:26:45 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-11 16:26:45 (GMT) |
commit | b57105ae33e1f61e6bdf0eec45c4135d067b9b22 (patch) | |
tree | 3d844292fdb3908b6226d01ff2b8602ecc405442 /Lib/test/test_ntpath.py | |
parent | 50b4b1598411ed393f47ce7f4fffbe5b9063cd42 (diff) | |
download | cpython-b57105ae33e1f61e6bdf0eec45c4135d067b9b22.zip cpython-b57105ae33e1f61e6bdf0eec45c4135d067b9b22.tar.gz cpython-b57105ae33e1f61e6bdf0eec45c4135d067b9b22.tar.bz2 |
GH-103220: Fix `ntpath.join()` of partial UNC drive with trailing slash (GH-103221)
Diffstat (limited to 'Lib/test/test_ntpath.py')
-rw-r--r-- | Lib/test/test_ntpath.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Lib/test/test_ntpath.py b/Lib/test/test_ntpath.py index 4e755d1..42b9587 100644 --- a/Lib/test/test_ntpath.py +++ b/Lib/test/test_ntpath.py @@ -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') |