]> granicus.if.org Git - python/commitdiff
A couple more test cases to ensure join() doesn't add an "extra" backslash
authorTim Peters <tim.peters@gmail.com>
Mon, 5 Nov 2001 21:33:04 +0000 (21:33 +0000)
committerTim Peters <tim.peters@gmail.com>
Mon, 5 Nov 2001 21:33:04 +0000 (21:33 +0000)
in the presence of empty-string arguments.

Lib/test/test_ntpath.py

index 98569f94cc3f496d4425903b6634577b31b55e4a..336e9e2e7a0d29c197272a8e820fa1f6fb0dfc0e 100644 (file)
@@ -81,6 +81,8 @@ tester("ntpath.join('', 'a')", 'a')
 tester("ntpath.join('', '', '', '', 'a')", 'a')
 tester("ntpath.join('a', '')", 'a\\')
 tester("ntpath.join('a', '', '', '', '')", 'a\\')
+tester("ntpath.join('a\\', '')", 'a\\')
+tester("ntpath.join('a\\', '', '', '', '')", 'a\\')
 
 tester("ntpath.normpath('A//////././//.//B')", r'A\B')
 tester("ntpath.normpath('A/./B')", r'A\B')