From: Tim Peters Date: Mon, 5 Nov 2001 21:33:04 +0000 (+0000) Subject: A couple more test cases to ensure join() doesn't add an "extra" backslash X-Git-Tag: v2.2.1c1~852 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e5a611c1bc70051f7fe464b1b4a24d02b9a77023;p=thirdparty%2FPython%2Fcpython.git A couple more test cases to ensure join() doesn't add an "extra" backslash in the presence of empty-string arguments. --- diff --git a/Lib/test/test_ntpath.py b/Lib/test/test_ntpath.py index 98569f94cc3f..336e9e2e7a0d 100644 --- a/Lib/test/test_ntpath.py +++ b/Lib/test/test_ntpath.py @@ -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')