summaryrefslogtreecommitdiff
path: root/Lib/test/test_ntpath.py
diff options
context:
space:
mode:
authorTim Peters <tim.peters@gmail.com>2001-11-05 21:33:04 +0000
committerTim Peters <tim.peters@gmail.com>2001-11-05 21:33:04 +0000
commite5a611c1bc70051f7fe464b1b4a24d02b9a77023 (patch)
tree7ffbb4fb583534cadbf82b28e75a640d678b19ed /Lib/test/test_ntpath.py
parent4794f0b234a9321d488a7b7399b3050542484407 (diff)
downloadcpython-git-e5a611c1bc70051f7fe464b1b4a24d02b9a77023.tar.gz
A couple more test cases to ensure join() doesn't add an "extra" backslash
in the presence of empty-string arguments.
Diffstat (limited to 'Lib/test/test_ntpath.py')
-rw-r--r--Lib/test/test_ntpath.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/test/test_ntpath.py b/Lib/test/test_ntpath.py
index 98569f94cc..336e9e2e7a 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')