summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_ntpath.py
diff options
context:
space:
mode:
authorTim Peters <tim.peters@gmail.com>2001-07-27 08:09:54 (GMT)
committerTim Peters <tim.peters@gmail.com>2001-07-27 08:09:54 (GMT)
commit33dc0a1705f1493e0ec079e291980da26dd2b39d (patch)
tree2acf85d3b7268660d3b537da813385623354f9fa /Lib/test/test_ntpath.py
parent4223f89eddc55c68f7b05aa33bc595e7791c362c (diff)
downloadcpython-33dc0a1705f1493e0ec079e291980da26dd2b39d.zip
cpython-33dc0a1705f1493e0ec079e291980da26dd2b39d.tar.gz
cpython-33dc0a1705f1493e0ec079e291980da26dd2b39d.tar.bz2
One more crack at join(): stop trying to pretend this isn't a mass of
special cases. test_pkg works again on Windows.
Diffstat (limited to 'Lib/test/test_ntpath.py')
-rw-r--r--Lib/test/test_ntpath.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/Lib/test/test_ntpath.py b/Lib/test/test_ntpath.py
index 7386900..fe997b3 100644
--- a/Lib/test/test_ntpath.py
+++ b/Lib/test/test_ntpath.py
@@ -66,6 +66,13 @@ tester('ntpath.join("a\\", "b", "c")', 'a\\b\\c')
tester('ntpath.join("a", "b\\", "c")', 'a\\b\\c')
tester('ntpath.join("a", "b", "\\c")', '\\c')
tester('ntpath.join("d:\\", "\\pleep")', 'd:\\pleep')
+tester('ntpath.join("d:\\", "a", "b")', 'd:\\a\\b')
+tester("ntpath.join('c:', '/a')", 'c:/a')
+tester("ntpath.join('c:/', '/a')", 'c:/a')
+tester("ntpath.join('c:/a', '/b')", '/b')
+tester("ntpath.join('c:', 'd:/')", 'd:/')
+tester("ntpath.join('c:/', 'd:/')", 'd:/')
+tester("ntpath.join('c:/', 'd:/a/b')", 'd:/a/b')
if errors:
raise TestFailed(str(errors) + " errors.")