summaryrefslogtreecommitdiffstats
path: root/Lib/test
diff options
context:
space:
mode:
authorTim Peters <tim.peters@gmail.com>2001-11-05 21:33:04 (GMT)
committerTim Peters <tim.peters@gmail.com>2001-11-05 21:33:04 (GMT)
commite5a611c1bc70051f7fe464b1b4a24d02b9a77023 (patch)
tree7ffbb4fb583534cadbf82b28e75a640d678b19ed /Lib/test
parent4794f0b234a9321d488a7b7399b3050542484407 (diff)
downloadcpython-e5a611c1bc70051f7fe464b1b4a24d02b9a77023.zip
cpython-e5a611c1bc70051f7fe464b1b4a24d02b9a77023.tar.gz
cpython-e5a611c1bc70051f7fe464b1b4a24d02b9a77023.tar.bz2
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')
-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 98569f9..336e9e2 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')