From e5a611c1bc70051f7fe464b1b4a24d02b9a77023 Mon Sep 17 00:00:00 2001 From: Tim Peters Date: Mon, 5 Nov 2001 21:33:04 +0000 Subject: [PATCH] A couple more test cases to ensure join() doesn't add an "extra" backslash in the presence of empty-string arguments. --- Lib/test/test_ntpath.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Lib/test/test_ntpath.py b/Lib/test/test_ntpath.py index 98569f94cc3..336e9e2e7a0 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')